check file parameter on load_veirfy extension

This commit is contained in:
Todd A Ouska 2011-05-19 15:50:20 -07:00
parent ae4f69f236
commit 15519867b7

View File

@ -1013,6 +1013,9 @@ int SSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file,
int CyaSSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file, int format)
{
CYASSL_ENTER("CyaSSL_CTX_load_verify_locations");
if (ctx == NULL || file == NULL)
return SSL_FAILURE;
if (ProcessFile(ctx, file, format, CA_TYPE, NULL, 0) == SSL_SUCCESS)
return SSL_SUCCESS;