From de299848c1344d8ee07432ebf23dd1f89fb083d1 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 22 Apr 2019 10:01:17 -0600 Subject: [PATCH] initialize pubkey size to 0 --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 06be33f0d..e9a4acf3e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -15385,8 +15385,8 @@ WOLFSSL_X509* wolfSSL_X509_d2i(WOLFSSL_X509** x509, const byte* in, int len) int length = 0; int ret, derSz = 0; int badDate = 0; - const byte* pubKeyX509; - int pubKeyX509Sz; + const byte* pubKeyX509 = NULL; + int pubKeyX509Sz = 0; WOLFSSL_ENTER("wolfSSL_X509_get_pubkey_buffer"); if (x509 == NULL || bufSz == NULL) {