forked from wolfSSL/wolfssl
fix sniffer out of memory potential problem
This commit is contained in:
@@ -1666,8 +1666,8 @@ static SnifferSession* CreateSession(IpInfo* ipInfo, TcpInfo* tcpInfo,
|
||||
session->sslClient = SSL_new(session->context->ctx);
|
||||
if (session->sslClient == NULL) {
|
||||
if (session->sslServer) {
|
||||
SSL_free(session->sslClient);
|
||||
session->sslClient = 0;
|
||||
SSL_free(session->sslServer);
|
||||
session->sslServer= 0;
|
||||
}
|
||||
SetError(BAD_NEW_SSL_STR, error, session, FATAL_ERROR_STATE);
|
||||
free(session);
|
||||
|
Reference in New Issue
Block a user