From 5d2d370bd5a59e57caafdb587043b15654b0c053 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 20 Dec 2018 11:40:20 -0700 Subject: [PATCH] fix for scan-build warning --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 0ba2e25d2..ffa3da6da 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -35518,7 +35518,7 @@ int wolfSSL_PEM_write_bio_PKCS8PrivateKey(WOLFSSL_BIO* bio, int encAlgId; if (bio == NULL || pkey == NULL) - ret = -1; + return -1; keySz = pkey->pkey_sz + 128; key = (byte*)XMALLOC(keySz, NULL, DYNAMIC_TYPE_TMP_BUFFER);