From cc0931e36bf2435d64b212b471de404b78fa8948 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 22 Jun 2011 15:29:36 +0000 Subject: [PATCH] PR: 2543 Submitted by: Robin Seggelmann Reviewed by: steve Correctly handle errors in DTLSv1_handle_timeout() --- ssl/d1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 15dea6ed4a..736216f6aa 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -438,7 +438,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++; -- 2.40.0