Module: kamailio
Branch: master
Commit: 2c6e87c50b13acdd94f77491eda0d73430f58dfc
URL:
https://github.com/kamailio/kamailio/commit/2c6e87c50b13acdd94f77491eda0d73…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-02-21T08:39:47+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())
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2c6e87c50b13acdd94f77491eda0d73…
Patch:
https://github.com/kamailio/kamailio/commit/2c6e87c50b13acdd94f77491eda0d73…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 2b9bde51ec..91fdfeb711 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3249,6 +3249,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;