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:
77d514c
)
Fix SSL_clear unused return
author
Matt Caswell
<matt@openssl.org>
Mon, 23 Mar 2015 15:27:40 +0000
(15:27 +0000)
committer
Matt Caswell
<matt@openssl.org>
Mon, 23 Mar 2015 16:02:21 +0000
(16:02 +0000)
Fix missing return value check in dtls1_listen when calling SSL_clear().
Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/d1_lib.c
patch
|
blob
|
history
diff --git
a/ssl/d1_lib.c
b/ssl/d1_lib.c
index 437e89f0112921feeb63f43ebf1c359c588e9f00..ad6561cb0de5e1b8bfa5bb98053a44802c3067fa 100644
(file)
--- a/
ssl/d1_lib.c
+++ b/
ssl/d1_lib.c
@@
-547,7
+547,8
@@
int dtls1_listen(SSL *s, struct sockaddr *client)
int ret;
/* Ensure there is no state left over from a previous invocation */
- SSL_clear(s);
+ if(!SSL_clear(s))
+ return -1;
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
s->d1->listen = 1;