From: Matt Caswell Date: Mon, 23 Mar 2015 15:27:40 +0000 (+0000) Subject: Fix SSL_clear unused return X-Git-Tag: OpenSSL_1_1_0-pre1~1483 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7f5b5d7bc462ca9dd5fc391e25c00a691960017;p=oweals%2Fopenssl.git Fix SSL_clear unused return Fix missing return value check in dtls1_listen when calling SSL_clear(). Reviewed-by: Richard Levitte --- diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 437e89f011..ad6561cb0d 100644 --- 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;