Release Fixes

1. Fix two potentially unitialized variables, discovered on a VS build.
This commit is contained in:
John Safranek
2019-03-18 10:14:16 -07:00
parent 1ac74b0061
commit eebf07b67c

View File

@ -28734,7 +28734,7 @@ static int pem_read_bio_key(WOLFSSL_BIO* bio, pem_password_cb* cb, void* pass,
pem_password_cb* localCb = cb; pem_password_cb* localCb = cb;
char* mem = NULL; char* mem = NULL;
int memSz; int memSz = 0;
int ret; int ret;
if ((ret = wolfSSL_BIO_pending(bio)) > 0) { if ((ret = wolfSSL_BIO_pending(bio)) > 0) {
@ -30402,7 +30402,7 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
int headerLen; int headerLen;
int headerFound = 0; int headerFound = 0;
unsigned char* der = NULL; unsigned char* der = NULL;
word32 derLen; word32 derLen = 0;
if (bio == NULL || name == NULL || header == NULL || data == NULL || if (bio == NULL || name == NULL || header == NULL || data == NULL ||
len == NULL) { len == NULL) {