From eebf07b67c05cf913f07e165e6981b1d75ad8ac7 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 18 Mar 2019 10:14:16 -0700 Subject: [PATCH] Release Fixes 1. Fix two potentially unitialized variables, discovered on a VS build. --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 129cef0d9..9b1a49b0e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -28734,7 +28734,7 @@ static int pem_read_bio_key(WOLFSSL_BIO* bio, pem_password_cb* cb, void* pass, pem_password_cb* localCb = cb; char* mem = NULL; - int memSz; + int memSz = 0; int ret; if ((ret = wolfSSL_BIO_pending(bio)) > 0) { @@ -30402,7 +30402,7 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl) int headerLen; int headerFound = 0; unsigned char* der = NULL; - word32 derLen; + word32 derLen = 0; if (bio == NULL || name == NULL || header == NULL || data == NULL || len == NULL) {