Explorar o código

modules/cdp: set CDP session to 0 after free-ing

Richard Good %!s(int64=10) %!d(string=hai) anos
pai
achega
fef6e02c09
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/cdp/authstatemachine.c

+ 1 - 0
modules/cdp/authstatemachine.c

@@ -248,6 +248,7 @@ inline int auth_client_statefull_sm_process(cdp_session_t* s, int event, AAAMess
                 case AUTH_EV_SERVICE_TERMINATED:
                 case AUTH_EV_SESSION_GRACE_TIMEOUT:
                     cdp_session_cleanup(s, NULL);
+		    s==0;
                     break;
 
                 default: