Selaa lähdekoodia

- bug fix: return '-1' if use_table failed in load_user_carrier

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5187 689a6050-402a-0410-94f2-e92a70836424
Henning Westerholt 17 vuotta sitten
vanhempi
commit
c3c32a634a
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      modules/carrierroute/cr_db.c

+ 1 - 0
modules/carrierroute/cr_db.c

@@ -110,6 +110,7 @@ int load_user_carrier(str * user, str * domain) {
 
 	if (carrierroute_dbf.use_table(carrierroute_dbh, &subscriber_table) < 0) {
 		LM_ERR("can't use table\n");
+		return -1;
 	}
 
 	if (carrierroute_dbf.query(carrierroute_dbh, keys, op, vals, cols, use_domain ? 2 : 1, 1, NULL, &res) < 0) {