[sr-dev] git:master: modules_k/pua: Fixed a DB only mode race condition found during soak testing

Peter Dunkley peter.dunkley at crocodile-rcs.com
Fri Apr 6 00:30:20 CEST 2012


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

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Thu Apr  5 23:24:01 2012 +0100

modules_k/pua: Fixed a DB only mode race condition found during soak testing

---

 modules_k/pua/send_subscribe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules_k/pua/send_subscribe.c b/modules_k/pua/send_subscribe.c
index a62ba7c..9b89a4a 100644
--- a/modules_k/pua/send_subscribe.c
+++ b/modules_k/pua/send_subscribe.c
@@ -410,7 +410,6 @@ faked_error:
 
 		if(ps->code >= 300 || lexpire == 0)
 		{
-			/* Initial request so dialog is temporary */
 			hentity->to_tag.s = NULL;
 			hentity->to_tag.len = 0;
 			find_and_delete_dialog(hentity, hash_code);
@@ -452,6 +451,8 @@ faked_error:
 		
 		subs_info_t subs;
 
+		hentity->to_tag.s = NULL;
+		hentity->to_tag.len = 0;
 		find_and_delete_dialog(hentity, hash_code);
 
 		/* Redirect if the response 3XX */




More information about the sr-dev mailing list