From 711d7ca594ce86179df2c399fd2a6956f9939316 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 22 Mar 2021 09:49:10 +1000 Subject: pem: fix coverity 1474426: uninitialised scalar variable. Based on the value, it would with work properly or produce an error. Most likely seems to have been the former. Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14638) --- crypto/pem/pvkfmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/pem') diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c index bc6f6fab71..432fd34618 100644 --- a/crypto/pem/pvkfmt.c +++ b/crypto/pem/pvkfmt.c @@ -323,7 +323,7 @@ EVP_PKEY *ossl_b2i_bio(BIO *in, int *ispub) const unsigned char *p; unsigned char hdr_buf[16], *buf = NULL; unsigned int bitlen, magic, length; - int isdss; + int isdss = -1; void *key = NULL; EVP_PKEY *pkey = NULL; -- cgit v1.2.3