|
@@ -197,7 +197,9 @@ static int mod_init(void)
|
|
|
|
|
|
if(db_check_table_version(&xcaps_dbf, xcaps_db, &xcaps_db_table,
|
|
|
XCAP_TABLE_VERSION) < 0) {
|
|
|
- LM_ERR("error during table version check.\n");
|
|
|
+ DB_TABLE_VERSION_ERROR(xcaps_db_table);
|
|
|
+ xcaps_dbf.close(xcaps_db);
|
|
|
+ xcaps_db = NULL;
|
|
|
return -1;
|
|
|
}
|
|
|
xcaps_dbf.close(xcaps_db);
|