[sr-dev] git:master:57be5c1f: core: added missing field in sip_msg_update_buffer

Aleksandar Yosifov alexyosifov at gmail.com
Wed Nov 11 08:11:07 CET 2020


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

Author: Aleksandar Yosifov <alexyosifov at gmail.com>
Committer: Aleksandar Yosifov <alexyosifov at gmail.com>
Date: 2020-11-09T14:37:26+02:00

core: added missing field in sip_msg_update_buffer

- added a missing field in sip_msg_update_buffer()
  when restoring message fiedls: msg->pid.

---

Modified: src/core/msg_translator.c

---

Diff:  https://github.com/kamailio/kamailio/commit/57be5c1f33344275c15777a7927d9c48df4a69ba.diff
Patch: https://github.com/kamailio/kamailio/commit/57be5c1f33344275c15777a7927d9c48df4a69ba.patch

---

diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index fd183d4f80..77b90a92c6 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3276,6 +3276,7 @@ int sip_msg_update_buffer(sip_msg_t *msg, str *obuf)
 	/* restore msg fields */
 	msg->buf = tmp.buf;
 	msg->id = tmp.id;
+	msg->pid = tmp.pid;
 	msg->rcv = tmp.rcv;
 	msg->set_global_address = tmp.set_global_address;
 	msg->set_global_port = tmp.set_global_port;




More information about the sr-dev mailing list