Fix for SSL sniffer free to properly cleanup globals (resolves issue with then calling ssl_InitSniffer -> ssl_FreeSniffer then ssl_InitSniffer again). ZD 10757.

This commit is contained in:
David Garske
2020-08-11 14:07:32 -07:00
parent 4f30e37094
commit 65bcc03885

View File

@ -672,6 +672,7 @@ void ssl_FreeSniffer(void)
srv = srv->next;
FreeSnifferServer(removeServer);
}
ServerList = NULL;
for (i = 0; i < HASH_SIZE; i++) {
session = SessionTable[i];
@ -681,6 +682,7 @@ void ssl_FreeSniffer(void)
FreeSnifferSession(removeSession);
}
}
SessionCount = 0;
wc_UnLockMutex(&SessionMutex);
wc_UnLockMutex(&ServerListMutex);