Skip to content

Commit

Permalink
dialog: fix a memory leak when using topology hiding
Browse files Browse the repository at this point in the history
Credits to Anton Mosin for troubleshooting this.
Fixes #2346.

(cherry picked from commit fd0e4b7)
  • Loading branch information
rvlad-patrascu committed Dec 17, 2020
1 parent 391c57d commit 082ea9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_handlers.c
Expand Up @@ -1290,7 +1290,7 @@ static inline int dlg_update_contact(struct dlg_cell *dlg, struct sip_msg *msg,
if ((dlg->mod_flags & TOPOH_ONGOING) &&
str_strcmp(&dlg->legs[other_leg(dlg, leg)].adv_contact, &contact_hdr) == 0) {
LM_DBG("skip updating topo hiding advertised contact\n");
return 0;
goto end;
}

if (dlg->legs[leg].contact.s) {
Expand Down

0 comments on commit 082ea9e

Please sign in to comment.