PR: 2543
authorDr. Stephen Henson <steve@openssl.org>
Wed, 22 Jun 2011 15:30:14 +0000 (15:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 22 Jun 2011 15:30:14 +0000 (15:30 +0000)
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Reviewed by: steve

Correctly handle errors in DTLSv1_handle_timeout()

ssl/d1_lib.c

index 9fe6b2b..48e8b6f 100644 (file)
@@ -398,7 +398,7 @@ int dtls1_handle_timeout(SSL *s)
                {
                /* fail the connection, enough alerts have been sent */
                SSLerr(SSL_F_DTLS1_HANDLE_TIMEOUT,SSL_R_READ_TIMEOUT_EXPIRED);
-               return 0;
+               return -1;
                }
 
        state->timeout.read_timeouts++;