projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a47f9
)
fix coverity issue 966597 - error line is not always initialised
author
Tim Hudson
<tjh@cryptsoft.com>
Sun, 4 May 2014 22:22:42 +0000
(08:22 +1000)
committer
Matt Caswell
<matt@openssl.org>
Wed, 7 May 2014 23:00:08 +0000
(
00:00
+0100)
ssl/ssl_asn1.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_asn1.c
b/ssl/ssl_asn1.c
index 38540be1e5380615391037e67a02fe8ae3816641..4775003710271ef6ee4462a96d948b6f61f59125 100644
(file)
--- 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