1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-12-02 00:01:33 +03:00

additional error handling if SSL_CTX_new failed

this is a folloup to https://github.com/SoftEtherVPN/SoftEtherVPN/pull/1873
This commit is contained in:
Ilya Shipitsin
2023-08-16 19:17:18 +02:00
parent acb6a53b31
commit 088b5c2df3
4 changed files with 22 additions and 0 deletions

View File

@ -417,6 +417,11 @@ bool StartPeapSslClient(EAP_CLIENT *e)
}
e->SslPipe = NewSslPipe(false, NULL, NULL, NULL);
if (e->SslPipe == NULL)
{
return false;
}
send_fifo = e->SslPipe->RawOut->RecvFifo;
recv_fifo = e->SslPipe->RawIn->SendFifo;