[sr-dev] git:master:b5f3a21d: core: set msg->pid when building local sip_msg_t from buf

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 26 08:05:50 CET 2019


Module: kamailio
Branch: master
Commit: b5f3a21d919f44f8842c2d85fb9447072b0f1889
URL: https://github.com/kamailio/kamailio/commit/b5f3a21d919f44f8842c2d85fb9447072b0f1889

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/b5f3a21d919f44f8842c2d85fb9447072b0f1889.diff
Patch: https://github.com/kamailio/kamailio/commit/b5f3a21d919f44f8842c2d85fb9447072b0f1889.patch

---

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) {




More information about the sr-dev mailing list