From 4d1d891a34e11fd5acaca8136509dc0ba57f3b40 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 18 Dec 2020 17:30:25 -0600 Subject: [PATCH] src/ssl.c: fix deadstore in wolfSSL_PEM_X509_X509_CRL_X509_PKEY_read_bio() warned by LLVM11 scan-build. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 9c3bbbcb6..2d4aa72fa 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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);