summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-22 15:29:36 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-06-22 15:29:36 +0000
commitcc0931e36bf2435d64b212b471de404b78fa8948 (patch)
tree7a88970e2f429b9a8327b7d39a27ef52d4dc054b /ssl
parent22152d6885fac98777ae1d7626a78c20b1ab4295 (diff)
PR: 2543
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Correctly handle errors in DTLSv1_handle_timeout()
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_lib.c2
1 files changed, 1 insertions, 1 deletions
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++;