Module: kamailio Branch: master Commit: 1dc12d8f83c9f5f9851dfdbe57fe64a38fc9911e URL: https://github.com/kamailio/kamailio/commit/1dc12d8f83c9f5f9851dfdbe57fe64a3...
Author: Marco Sinibaldi marco.sinibaldi@athonet.com Committer: Marco Sinibaldi marco.sinibaldi@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/1dc12d8f83c9f5f9851dfdbe57fe64a3... Patch: https://github.com/kamailio/kamailio/commit/1dc12d8f83c9f5f9851dfdbe57fe64a3...
---
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);