提交 3457e7a0 编写于 作者: M Matt Caswell

Remove redundant check from SSL_shutdown

The SSL object was being deref'd and then there was a later redundant check
to see if it is NULL. We assume all SSL_foo functions pass a non NULL SSL
object and do not check it.
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 6703c4ea
...@@ -990,7 +990,7 @@ int SSL_shutdown(SSL *s) ...@@ -990,7 +990,7 @@ int SSL_shutdown(SSL *s)
return -1; return -1;
} }
if ((s != NULL) && !SSL_in_init(s)) if (!SSL_in_init(s))
return (s->method->ssl_shutdown(s)); return (s->method->ssl_shutdown(s));
else else
return (1); return (1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册