Browse Source

modules/ims_charging: possible seg fault on diameter CCR timeout fixed

Jason Penton 11 years ago
parent
commit
8e2fcd278c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      modules/ims_charging/ims_ro.c

+ 3 - 2
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;