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