Skip to content

Commit

Permalink
core: remove unnecessary condition on msg
Browse files Browse the repository at this point in the history
- the structure is already used before
  • Loading branch information
miconda committed Dec 5, 2023
1 parent 3a02bf4 commit a9e0296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/msg_translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a9e0296

Please sign in to comment.