瀏覽代碼

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

Peter Dunkley 13 年之前
父節點
當前提交
56eec10df9
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 */