Commit c7f5b5d7 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix SSL_clear unused return



Fix missing return value check in dtls1_listen when calling SSL_clear().

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 77d514c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;