[sr-dev] git:master: modules/ims_charging: possible seg fault on diameter CCR timeout fixed
Jason Penton
jason.penton at gmail.com
Fri May 30 18:27:21 CEST 2014
Module: sip-router
Branch: master
Commit: 8e2fcd278c9172a1774a1a1bae72f2e6d37b1770
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8e2fcd278c9172a1774a1a1bae72f2e6d37b1770
Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at gmail.com>
Date: Fri May 30 18:26:48 2014 +0200
modules/ims_charging: possible seg fault on diameter CCR timeout fixed
---
modules/ims_charging/ims_ro.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index 59c3ab3..ef1f6e4 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -680,8 +680,9 @@ error:
if (ro_cca_data)
Ro_free_CCA(ro_cca_data);
-// if (ro_cca_data)
- cdpb.AAAFreeMessage(&cca);
+ if (!is_timeout && cca) {
+ cdpb.AAAFreeMessage(&cca);
+ }
if (i_req) {
i_req->credit_valid_for = 0;
More information about the sr-dev
mailing list