mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
OpenSSL: Fix uninitialized variable in CRL reloading corner case
The flags variable needs to be initialized to 0 if check_crl is 0 in
the updated configuration.
Fixes: 159a7fbdea
("crl_reload_interval: Add CRL reloading support")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
092a19222b
commit
91205c8eb4
@ -329,8 +329,7 @@ static X509_STORE * tls_crl_cert_reload(const char *ca_cert, int check_crl)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_crl)
|
flags = check_crl ? X509_V_FLAG_CRL_CHECK : 0;
|
||||||
flags = X509_V_FLAG_CRL_CHECK;
|
|
||||||
if (check_crl == 2)
|
if (check_crl == 2)
|
||||||
flags |= X509_V_FLAG_CRL_CHECK_ALL;
|
flags |= X509_V_FLAG_CRL_CHECK_ALL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user