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:
6703c4e
)
Remove redundant check from SSL_shutdown
author
Matt Caswell
<matt@openssl.org>
Mon, 9 Nov 2015 15:31:27 +0000
(15:31 +0000)
committer
Matt Caswell
<matt@openssl.org>
Mon, 9 Nov 2015 15:36:19 +0000
(15:36 +0000)
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>
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 0674cb44af7fd49dfb6c272057e4adf8caee4050..ec852569b1994bd2909c53312f1d7d47a3e61920 100644
(file)
--- a/
ssl/ssl_lib.c
+++ b/
ssl/ssl_lib.c
@@
-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);