Module: kamailio
Branch: master
Commit: 391c8ac03fc91029104b0c125e4c6e6184f1783a
URL:
https://github.com/kamailio/kamailio/commit/391c8ac03fc91029104b0c125e4c6e6…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-01-18T11:52:17+02:00
modules/ims_auth: prevent crash if suspended transaction disappears waiting for a MAR
---
Modified: modules/ims_auth/cxdx_mar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/391c8ac03fc91029104b0c125e4c6e6…
Patch:
https://github.com/kamailio/kamailio/commit/391c8ac03fc91029104b0c125e4c6e6…
---
diff --git a/modules/ims_auth/cxdx_mar.c b/modules/ims_auth/cxdx_mar.c
index ff41296..3dcbcb1 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);
}