Browse code

tm: use BUILD_NEW_LOCAL_VIA after local request event route execution

Daniel-Constantin Mierla authored on 17/02/2021 07:23:34
Showing 1 changed files
... ...
@@ -343,7 +343,8 @@ static inline int t_run_local_req(
343 343
 
344 344
 		LM_DBG("apply new updates with Via to sip msg\n");
345 345
 		buf1 = build_req_buf_from_sip_req(&lreq,
346
-				(unsigned int*)&buf_len1, &request->dst, BUILD_IN_SHM);
346
+				(unsigned int*)&buf_len1, &request->dst,
347
+				BUILD_NEW_LOCAL_VIA|BUILD_IN_SHM);
347 348
 		if (likely(buf1)){
348 349
 			shm_free(*buf);
349 350
 			*buf = buf1;