Module: kamailio Branch: master Commit: bb0bb49a30b7732eea8785ce7b7f02bbf512ef74 URL: https://github.com/kamailio/kamailio/commit/bb0bb49a30b7732eea8785ce7b7f02bbf512ef74
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-11-27T19:19:08+01:00 tm: small code formatting and clarity --- Modified: src/modules/tm/uac.c --- Diff: https://github.com/kamailio/kamailio/commit/bb0bb49a30b7732eea8785ce7b7f02bbf512ef74.diff Patch: https://github.com/kamailio/kamailio/commit/bb0bb49a30b7732eea8785ce7b7f02bbf512ef74.patch --- diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c index cbfb46e8ebd..f1717cf1ffc 100644 --- a/src/modules/tm/uac.c +++ b/src/modules/tm/uac.c @@ -675,11 +675,12 @@ static inline int t_uac_prepare( #ifdef DIALOG_CALLBACKS run_trans_dlg_callbacks(uac_r->dialog, new_cell, request); #endif /* DIALOG_CALLBACKS */ - if(dst_req) + if(dst_req != NULL) { *dst_req = request; - if(dst_cell) + } + if(dst_cell != NULL) { *dst_cell = new_cell; - else if(is_ack && dst_req == 0) { + } else if(is_ack && dst_req == NULL) { free_cell(new_cell); } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
