help out static analyizer and memset buffer created

This commit is contained in:
Jacob Barthelmeh
2021-03-17 12:34:12 +07:00
parent 48d13bbfa5
commit 6995f6dedc

View File

@ -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) {