[sr-dev] git:master: pua: release lock on not finding temp dialog

Daniel-Constantin Mierla miconda at gmail.com
Fri May 31 17:07:01 CEST 2013


Module: sip-router
Branch: master
Commit: 09cc2207b265d51dcbc28279623bf9c597fa3b46
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=09cc2207b265d51dcbc28279623bf9c597fa3b46

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri May 31 17:05:40 2013 +0200

pua: release lock on not finding temp dialog

- patch by Halina Nowak

---

 modules/pua/hash.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/pua/hash.c b/modules/pua/hash.c
index 9ad169b..e3dea99 100644
--- a/modules/pua/hash.c
+++ b/modules/pua/hash.c
@@ -334,8 +334,10 @@ int convert_temporary_dialog(ua_pres_t *dialog)
 	temp_dialog = get_temporary_dialog(dialog, hash_code);
 	if (temp_dialog)
 		delete_htable(temp_dialog, hash_code);
-	else
+	else {
+		lock_release(&HashT->p_records[hash_code].lock);
 		return -1;
+	}
 
 	insert_htable(dialog, hash_code);
 




More information about the sr-dev mailing list