1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

protocol: fix uninitialized variable

Value of server_cert is undefined if `b = PackGetBuf(p, "Cert");` was
failed.
This commit is contained in:
Georgy Komarov 2020-03-27 07:25:45 +03:00
parent 22272ec838
commit 1416a693e7
No known key found for this signature in database
GPG Key ID: 195B8622FE88ED46

View File

@ -4621,7 +4621,7 @@ REDIRECTED:
UINT use_port = 0;
UINT current_port = c->ServerPort;
UCHAR ticket[SHA1_SIZE];
X *server_cert;
X *server_cert = NULL;
BUF *b;
// Redirect mode