Browse Source

Merge pull request #1348 from grumvalski/local_request_crash

tm: make t_run_local_req reentrant
Federico Cabiddu 7 năm trước cách đây
mục cha
commit
432b38bb0b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/tm/uac.c

+ 1 - 1
src/modules/tm/uac.c

@@ -221,7 +221,7 @@ static inline int t_run_local_req(
 		uac_req_t *uac_r,
 		struct cell *new_cell, struct retr_buf *request)
 {
-	static struct sip_msg lreq;
+	struct sip_msg lreq = {0};
 	struct onsend_info onsnd_info;
 	tm_xlinks_t backup_xd;
 	int sflag_bk;