forked from wolfSSL/wolfssl
check file parameter on load_veirfy
This commit is contained in:
@ -997,6 +997,9 @@ int SSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file,
|
||||
CYASSL_ENTER("SSL_CTX_load_verify_locations");
|
||||
(void)path;
|
||||
|
||||
if (ctx == NULL || file == NULL)
|
||||
return SSL_FAILURE;
|
||||
|
||||
if (ProcessFile(ctx, file, SSL_FILETYPE_PEM, CA_TYPE,NULL,0) == SSL_SUCCESS)
|
||||
return SSL_SUCCESS;
|
||||
|
||||
|
Reference in New Issue
Block a user