From: Dr. Stephen Henson Date: Wed, 22 Jun 2011 15:29:55 +0000 (+0000) Subject: PR: 2543 X-Git-Tag: OpenSSL_1_0_0e~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f59f2fcbfff424572f16017027ad66b1f0d013a0;p=oweals%2Fopenssl.git PR: 2543 Submitted by: Robin Seggelmann Reviewed by: steve Correctly handle errors in DTLSv1_handle_timeout() --- diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 9fe6b2b8f7..48e8b6ffbb 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -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++;