Module: kamailio
Branch: master
Commit: b5f3a21d919f44f8842c2d85fb9447072b0f1889
URL:
https://github.com/kamailio/kamailio/commit/b5f3a21d919f44f8842c2d85fb94470…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-02-26T08:05:27+01:00
core: set msg->pid when building local sip_msg_t from buf
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b5f3a21d919f44f8842c2d85fb94470…
Patch:
https://github.com/kamailio/kamailio/commit/b5f3a21d919f44f8842c2d85fb94470…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index c7851904c7..25f9cce01e 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3194,6 +3194,7 @@ int build_sip_msg_from_buf(struct sip_msg *msg, char *buf, int len,
memset(msg, 0, sizeof(sip_msg_t));
msg->id = id;
+ msg->pid = my_pid();
msg->buf = buf;
msg->len = len;
if (parse_msg(buf, len, msg)!=0) {