Skip to content

Commit 6aab0da

Browse files
committed
Fix cleanup of the re-used dummy sip msg.
Be sure to clean ALL the fields in the msg, not only the ones related to the msg parsing. The prevent inheriting of data between sequential usage of the message, we need to clean the flags, sockets, etc. (cherry picked from commit 4a2183a)
1 parent d3d955f commit 6aab0da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.c

+8
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,14 @@ void release_dummy_sip_msg( struct sip_msg* req)
12601260
req->set_global_address.len = req->set_global_port.len = 0;
12611261
req->add_rm = req->body_lumps = NULL;
12621262
req->reply_lump = NULL;
1263+
req->ruri_q = Q_UNSPECIFIED;
1264+
req->ruri_bflags = 0;
1265+
req->force_send_socket = NULL;
1266+
req->parsed_uri_ok = 0;
1267+
req->parsed_orig_ruri_ok = 0;
1268+
req->add_to_branch_len = 0;
1269+
req->flags = 0;
1270+
req->msg_flags = 0;
12631271
dummy_static_in_used = 0;
12641272
} else {
12651273
LM_DBG("freeing allocated sip msg %p\n",req);

0 commit comments

Comments
 (0)