浏览代码

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 年之前
父节点
当前提交
cc703743a3
共有 1 个文件被更改,包括 1 次插入2 次删除
  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);