Module: sip-router Branch: master Commit: cc703743a35419607d91fc004819beab3289398c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cc703743...
Author: pd peter.dunkley@crocodile-rcs.com Committer: pd peter.dunkley@crocodile-rcs.com Date: Wed Jan 18 10:25:45 2012 +0000
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
---
modules_k/presence/subscribe.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules_k/presence/subscribe.c b/modules_k/presence/subscribe.c index 5f414b3..d11287c 100644 --- a/modules_k/presence/subscribe.c +++ b/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);