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 <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14638)
This commit is contained in:
Pauli 2021-03-22 09:49:10 +10:00
parent a669418c8e
commit 711d7ca594

View File

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