Module: kamailio
Branch: master
Commit: a9e02966384cbcdf04aa16feb034b87e524352c9
URL:
https://github.com/kamailio/kamailio/commit/a9e02966384cbcdf04aa16feb034b87…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-05T15:08:50+01:00
core: remove unnecessary condition on msg
- the structure is already used before
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a9e02966384cbcdf04aa16feb034b87…
Patch:
https://github.com/kamailio/kamailio/commit/a9e02966384cbcdf04aa16feb034b87…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 51c3477c5ee..52307ce8ad8 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -2517,7 +2517,7 @@ char *build_res_buf_from_sip_req(unsigned int code, str *text, str
*new_tag,
}
/* test and add xavp via reply params */
- if(msg && (msg->msg_flags & FL_ADD_XAVP_VIA_REPLY_PARAMS)
+ if((msg->msg_flags & FL_ADD_XAVP_VIA_REPLY_PARAMS)
&& _ksr_xavp_via_reply_params.len > 0) {
xparams.s = pv_get_buffer();
xparams.len = xavp_serialize_fields_style(&_ksr_xavp_via_reply_params,