diff options
author | Tim Hudson <tjh@cryptsoft.com> | 2014-05-05 00:22:42 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-05-08 00:54:25 +0200 |
commit | 630f9fc69dc383193b11c48725926b661c12dedb (patch) | |
tree | 6345c61ee6ee3c0ff83683d283268bb156fbcfa1 /ssl/ssl_asn1.c | |
parent | Fixed NULL pointer dereference in PKCS7_dataDecode reported by David Ramos in... (diff) | |
download | openssl-630f9fc69dc383193b11c48725926b661c12dedb.tar.xz openssl-630f9fc69dc383193b11c48725926b661c12dedb.zip |
fix coverity issue 966597 - error line is not always initialised
Diffstat (limited to 'ssl/ssl_asn1.c')
-rw-r--r-- | ssl/ssl_asn1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 38540be1e5..4775003710 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -408,6 +408,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, if (os.length != 3) { c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH; + c.line=__LINE__; goto err; } id=0x02000000L| @@ -420,6 +421,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, if (os.length != 2) { c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH; + c.line=__LINE__; goto err; } id=0x03000000L| @@ -429,6 +431,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, else { c.error=SSL_R_UNKNOWN_SSL_VERSION; + c.line=__LINE__; goto err; } @@ -521,6 +524,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, if (os.length > SSL_MAX_SID_CTX_LENGTH) { c.error=SSL_R_BAD_LENGTH; + c.line=__LINE__; goto err; } else |