提交 630f9fc6 编写于 作者: T Tim Hudson 提交者: Matt Caswell

fix coverity issue 966597 - error line is not always initialised

上级 2d2e0479
...@@ -408,6 +408,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, ...@@ -408,6 +408,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
if (os.length != 3) if (os.length != 3)
{ {
c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH; c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH;
c.line=__LINE__;
goto err; goto err;
} }
id=0x02000000L| id=0x02000000L|
...@@ -420,6 +421,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, ...@@ -420,6 +421,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
if (os.length != 2) if (os.length != 2)
{ {
c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH; c.error=SSL_R_CIPHER_CODE_WRONG_LENGTH;
c.line=__LINE__;
goto err; goto err;
} }
id=0x03000000L| id=0x03000000L|
...@@ -429,6 +431,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, ...@@ -429,6 +431,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
else else
{ {
c.error=SSL_R_UNKNOWN_SSL_VERSION; c.error=SSL_R_UNKNOWN_SSL_VERSION;
c.line=__LINE__;
goto err; goto err;
} }
...@@ -521,6 +524,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, ...@@ -521,6 +524,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
if (os.length > SSL_MAX_SID_CTX_LENGTH) if (os.length > SSL_MAX_SID_CTX_LENGTH)
{ {
c.error=SSL_R_BAD_LENGTH; c.error=SSL_R_BAD_LENGTH;
c.line=__LINE__;
goto err; goto err;
} }
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册