Module: sip-router
Branch: master
Commit: 47a0de15f35c67400d980797bbb1d43a270e79cc
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=47a0de1…
Author: Anca Vamanu <anca.vamanu(a)1and1.ro>
Committer: Anca Vamanu <anca.vamanu(a)1and1.ro>
Date: Wed Feb 22 18:06:59 2012 +0200
modules_k/presence Fix bug in last commit
---
modules_k/presence/subscribe.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence/subscribe.c b/modules_k/presence/subscribe.c
index 3bd6fc6..39f649f 100644
--- a/modules_k/presence/subscribe.c
+++ b/modules_k/presence/subscribe.c
@@ -1161,6 +1161,9 @@ int get_stored_info(struct sip_msg* msg, subs_t* subs, int*
reply_code,
lock_release(&subs_htable[i].lock);
}
+ if(!s)
+ goto not_found;
+
found_rec:
LM_DBG("Record found in hash_table\n");