summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-22 17:30:14 +0200
committerDr. Stephen Henson <steve@openssl.org>2011-06-22 17:30:14 +0200
commit861a7e5c9f40875e61a377780d735896762b62e6 (patch)
tree4e0ef5d3a8d1b29931c4deeb0286ce431ce9228b /ssl
parentPR: 2540 (diff)
downloadopenssl-861a7e5c9f40875e61a377780d735896762b62e6.tar.xz
openssl-861a7e5c9f40875e61a377780d735896762b62e6.zip
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 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++;