Merge pull request #3582 from douzzer/scan-build-fix-20201218

fix deadstore in ssl.c warned by LLVM11 scan-build.
This commit is contained in:
JacobBarthelmeh
2020-12-21 17:23:13 +07:00
committed by GitHub

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);