summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-03-22 09:49:10 +1000
committerPauli <ppzgs1@gmail.com>2021-03-24 09:12:43 +1000
commit711d7ca594ce86179df2c399fd2a6956f9939316 (patch)
tree6332caf2ed24e13a1b52cfac0e10c238a2e0db13 /crypto/pem
parenta669418c8eb64d0e3cb62af1794949066a253039 (diff)
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)
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pvkfmt.c2
1 files changed, 1 insertions, 1 deletions
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;