瀏覽代碼

utils: convert module to use DB_TABLE_VERSION_ERROR helper

- convert module to use DB_TABLE_VERSION_ERROR helper
- unify error handling (properly close database on errors, null db handle)
Henning Westerholt 6 年之前
父節點
當前提交
39fb6bacd9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/utils/utils.c

+ 1 - 1
src/modules/utils/utils.c

@@ -187,7 +187,7 @@ static int pres_db_init(void) {
 	}
 	if (db_check_table_version(&pres_dbf, pres_dbh, &xcap_table,
 				XCAP_TABLE_VERSION) < 0) {
-		LM_ERR("during table version check\n");
+		DB_TABLE_VERSION_ERROR(xcap_table);
 		pres_db_close();
 		return -1;
 	}