From 6995f6dedc93c928d944a8f096b48ce2c858fb52 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 17 Mar 2021 12:34:12 +0700 Subject: [PATCH] help out static analyizer and memset buffer created --- src/ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl.c b/src/ssl.c index f2320d0ce..3d26a38b1 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -41554,6 +41554,7 @@ cleanup: pem = (unsigned char*)XMALLOC(l, 0, DYNAMIC_TYPE_PEM); if (pem == NULL) return NULL; + XMEMSET(pem, 0, l); i = 0; if (wc_PemGetHeaderFooter(type, NULL, &footer) != 0) {