Module: kamailio
Branch: master
Commit: 57be5c1f33344275c15777a7927d9c48df4a69ba
URL:
https://github.com/kamailio/kamailio/commit/57be5c1f33344275c15777a7927d9c4…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Aleksandar Yosifov <alexyosifov(a)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/57be5c1f33344275c15777a7927d9c4…
Patch:
https://github.com/kamailio/kamailio/commit/57be5c1f33344275c15777a7927d9c4…
---
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;