Browse code

core: set msg->pid when building local sip_msg_t from buf

Daniel-Constantin Mierla authored on 26/02/2019 06:57:12
Showing 1 changed files
... ...
@@ -3194,6 +3194,7 @@ int build_sip_msg_from_buf(struct sip_msg *msg, char *buf, int len,
3194 3194
 
3195 3195
 	memset(msg, 0, sizeof(sip_msg_t));
3196 3196
 	msg->id = id;
3197
+	msg->pid = my_pid();
3197 3198
 	msg->buf = buf;
3198 3199
 	msg->len = len;
3199 3200
 	if (parse_msg(buf, len, msg)!=0) {