From: Pauli Date: Sun, 21 Mar 2021 23:49:10 +0000 (+1000) Subject: pem: fix coverity 1474426: uninitialised scalar variable. X-Git-Tag: openssl-3.0.0-alpha14~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711d7ca594ce86179df2c399fd2a6956f9939316;p=thirdparty%2Fopenssl.git 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) --- diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c index bc6f6fab712..432fd346182 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;