2
0
Эх сурвалжийг харах

modules_k/presence: Fix for crash in presence during Kamailio start if the active_watchers table contains lots of records (more than fetch_rows amount) and the memory hash table is used

- Fix Paul Pankhurst @ Crocodile RCS
pd 13 жил өмнө
parent
commit
cc703743a3

+ 1 - 2
modules_k/presence/subscribe.c

@@ -1842,10 +1842,9 @@ int restore_db_subs(void)
 		goto error;
 	}
 
-	nr_rows = RES_ROW_N(result);
-
 
 	do {
+		nr_rows = RES_ROW_N(result);
 		LM_DBG("loading information from database %i records\n", nr_rows);
 
 		rows = RES_ROWS(result);