[sr-dev] git:master:1dc12d8f: ims_charging: Fix double free upon Ro AAA send failure

Marco Sinibaldi marco.sinibaldi at athonet.com
Mon Jul 25 09:24:37 CEST 2016


Module: kamailio
Branch: master
Commit: 1dc12d8f83c9f5f9851dfdbe57fe64a38fc9911e
URL: https://github.com/kamailio/kamailio/commit/1dc12d8f83c9f5f9851dfdbe57fe64a38fc9911e

Author: Marco Sinibaldi <marco.sinibaldi at athonet.com>
Committer: Marco Sinibaldi <marco.sinibaldi at athonet.com>
Date: 2016-07-21T14:55:52+02:00

ims_charging: Fix double free upon Ro AAA send failure

---

Modified: modules/ims_charging/ims_ro.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1dc12d8f83c9f5f9851dfdbe57fe64a38fc9911e.diff
Patch: https://github.com/kamailio/kamailio/commit/1dc12d8f83c9f5f9851dfdbe57fe64a38fc9911e.patch

---

diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index df56bad..c0c586f 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -638,6 +638,7 @@ void send_ccr_interim(struct ro_session* ro_session, unsigned int used, unsigned
     }
 
     if (ret != 1) {
+        ccr = 0;	// If an error is returned from cdp AAASendMessage, the message has been freed there
         goto error;
     }
     //    cdpb.AAASessionsUnlock(auth->hash);




More information about the sr-dev mailing list