From 391c8ac03fc91029104b0c125e4c6e6184f1783a Mon Sep 17 00:00:00 2001 From: jaybeepee Date: Mon, 18 Jan 2016 11:52:17 +0200 Subject: [PATCH] modules/ims_auth: prevent crash if suspended transaction disappears waiting for a MAR --- modules/ims_auth/cxdx_mar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ims_auth/cxdx_mar.c b/modules/ims_auth/cxdx_mar.c index ff41296aa52..3dcbcb1f4c4 100644 --- a/modules/ims_auth/cxdx_mar.c +++ b/modules/ims_auth/cxdx_mar.c @@ -137,7 +137,7 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *maa, long elaps if (tmb.t_lookup_ident(&t, data->tindex, data->tlabel) < 0) { LM_ERR("t_continue: transaction not found\n"); result = CSCF_RETURN_ERROR; - goto error; + goto error1; } /* get the private_identity */ @@ -485,6 +485,8 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *maa, long elaps tmb.unref_cell(t); } tmb.t_continue(data->tindex, data->tlabel, data->act); + +error1: free_saved_transaction_data(data); }