From ae4f69f2363672e47ce511d4ad11bde6af786d84 Mon Sep 17 00:00:00 2001 From: Todd A Ouska Date: Thu, 19 May 2011 15:49:03 -0700 Subject: [PATCH] check file parameter on load_veirfy --- src/ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 97497b797..065347665 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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;