commit | c7f5b5d7bc462ca9dd5fc391e25c00a691960017 | [log] [tgz] |
---|---|---|
author | Matt Caswell <matt@openssl.org> | Mon Mar 23 15:27:40 2015 +0000 |
committer | Matt Caswell <matt@openssl.org> | Mon Mar 23 16:02:21 2015 +0000 |
tree | 2fd5603352bcdf5cf4a6d998cddabcdbd332d2b7 | |
parent | 77d514c5a00511017967f98b03a946d86c923e94 [diff] [blame] |
Fix SSL_clear unused return Fix missing return value check in dtls1_listen when calling SSL_clear(). Reviewed-by: Richard Levitte <levitte@openssl.org>
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 437e89f..ad6561c 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c
@@ -547,7 +547,8 @@ 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;