fix coverity issue 966597 - error line is not always initialised
(Imported from upstream's afe343c3a7077caeaad43a9f2ee7e5d7f70076e5)
This commit is contained in:
parent
c8e91d5798
commit
f77452c572
@ -380,6 +380,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|
|
||||
@ -392,6 +393,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|
|
||||
@ -401,6 +403,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;
|
||||
}
|
||||
|
||||
@ -475,6 +478,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
|
||||
|
Loading…
Reference in New Issue
Block a user