diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 17:30:14 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 17:30:14 +0200 |
commit | 861a7e5c9f40875e61a377780d735896762b62e6 (patch) | |
tree | 4e0ef5d3a8d1b29931c4deeb0286ce431ce9228b /ssl | |
parent | PR: 2540 (diff) | |
download | openssl-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.c | 2 |
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++; |