[sr-dev] git:master:391c8ac0: modules/ims_auth: prevent crash if suspended transaction disappears waiting for a MAR

jaybeepee jason.penton at gmail.com
Mon Jan 18 10:53:12 CET 2016


Module: kamailio
Branch: master
Commit: 391c8ac03fc91029104b0c125e4c6e6184f1783a
URL: https://github.com/kamailio/kamailio/commit/391c8ac03fc91029104b0c125e4c6e6184f1783a

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at 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/391c8ac03fc91029104b0c125e4c6e6184f1783a.diff
Patch: https://github.com/kamailio/kamailio/commit/391c8ac03fc91029104b0c125e4c6e6184f1783a.patch

---

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);
 }
 




More information about the sr-dev mailing list