Module: sip-router
Branch: 3.3
Commit: 831b80f9aecabfdfa37bcb806bc1192e46681869
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=831b80f…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Tue Sep 11 13:03:32 2012 +0100
modules_k/rls: Added missing lock_release()
- Found and fixed by Hugh Waite @ Crocodile RCS Ltd
(cherry picked from commit 725020f91493d33c5fa86828a421ed465731658e)
---
modules_k/rls/resource_notify.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules_k/rls/resource_notify.c b/modules_k/rls/resource_notify.c
index 1285925..9c757ad 100644
--- a/modules_k/rls/resource_notify.c
+++ b/modules_k/rls/resource_notify.c
@@ -127,6 +127,12 @@ void get_dialog_from_did(char* did, subs_t **dialog, unsigned int
*hash_code)
/* save dialog info */
*dialog= pres_copy_subs(s, PKG_MEM_TYPE);
+ if(*dialog== NULL)
+ {
+ LM_ERR("while copying subs_t structure\n");
+ lock_release(&rls_table[*hash_code].lock);
+ return;
+ }
}
if ((*dialog)->expires < (int)time(NULL))