2
0
Эх сурвалжийг харах

tm: make t_run_local_req reentrant

- avoid crash when local-request event route is triggered inside another one
grumvalski 7 жил өмнө
parent
commit
97b15611ad
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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;