Module: sip-router
Branch: master
Commit: 725020f91493d33c5fa86828a421ed465731658e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=725020f…
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
---
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 1b9b47c..1fb3de7 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== NULL)