mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
6703c4ea87
commit
3457e7a087
@ -990,7 +990,7 @@ int SSL_shutdown(SSL *s)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((s != NULL) && !SSL_in_init(s))
|
||||
if (!SSL_in_init(s))
|
||||
return (s->method->ssl_shutdown(s));
|
||||
else
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user