check file parameter on load_veirfy

This commit is contained in:
Todd A Ouska
2011-05-19 15:49:03 -07:00
parent c078200e6e
commit ae4f69f236

View File

@ -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;