Przeglądaj źródła

ims_charging: Fix double free upon Ro AAA send failure

Marco Sinibaldi 9 lat temu
rodzic
commit
1dc12d8f83
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      modules/ims_charging/ims_ro.c

+ 1 - 0
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);