src/ssl.c: fix deadstore in wolfSSL_PEM_X509_X509_CRL_X509_PKEY_read_bio() warned by LLVM11 scan-build.

This commit is contained in:
Daniel Pouzzner
2020-12-18 17:30:25 -06:00
parent 0df41d865f
commit 4d1d891a34

View File

@@ -41134,7 +41134,7 @@ err:
}
/* Read the header and footer */
while ((l = wolfSSL_BIO_read(bio, &pem[i], 1)) == 1) {
while (wolfSSL_BIO_read(bio, &pem[i], 1) == 1) {
i++;
if (!header)
header = XSTRNSTR(pem, "-----BEGIN ", (unsigned int)i);