소스 검색

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)
 		if(ps->code >= 300 || lexpire == 0)
 		{
 		{
-			/* Initial request so dialog is temporary */
 			hentity->to_tag.s = NULL;
 			hentity->to_tag.s = NULL;
 			hentity->to_tag.len = 0;
 			hentity->to_tag.len = 0;
 			find_and_delete_dialog(hentity, hash_code);
 			find_and_delete_dialog(hentity, hash_code);
@@ -452,6 +451,8 @@ faked_error:
 		
 		
 		subs_info_t subs;
 		subs_info_t subs;
 
 
+		hentity->to_tag.s = NULL;
+		hentity->to_tag.len = 0;
 		find_and_delete_dialog(hentity, hash_code);
 		find_and_delete_dialog(hentity, hash_code);
 
 
 		/* Redirect if the response 3XX */
 		/* Redirect if the response 3XX */