Browse Source

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

Peter Dunkley 13 years ago
parent
commit
56eec10df9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules_k/pua/send_subscribe.c

+ 2 - 1
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 */