Browse Source

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 năm trước cách đây
mục cha
commit
cc703743a3
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      modules_k/presence/subscribe.c

+ 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);