Module: kamailio
Branch: 5.3
Commit: 38869d54ed6210f63fceb185a6531193eed1629f
URL:
https://github.com/kamailio/kamailio/commit/38869d54ed6210f63fceb185a653119…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-21T08:42:02+01:00
core: propagate xflags inside sip_msg_update_buffer() to new msg
- xflags were lost when the msg structure was reinitialized (e.g., after
msg_apply_chages())
(cherry picked from commit 2c6e87c50b13acdd94f77491eda0d73430f58dfc)
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/38869d54ed6210f63fceb185a653119…
Patch:
https://github.com/kamailio/kamailio/commit/38869d54ed6210f63fceb185a653119…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 2e9d9da240..354d887330 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3250,6 +3250,7 @@ int sip_msg_update_buffer(sip_msg_t *msg, str *obuf)
msg->set_global_port = tmp.set_global_port;
msg->flags = tmp.flags;
msg->msg_flags = tmp.msg_flags;
+ memcpy(msg->xflags, tmp.xflags, KSR_XFLAGS_SIZE * sizeof(flag_t));
msg->hash_index = tmp.hash_index;
msg->force_send_socket = tmp.force_send_socket;
msg->fwd_send_flags = tmp.fwd_send_flags;