diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 15:30:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 15:30:04 +0000 |
commit | 6abc406a690ea34203f249184a7c8416e3387bf8 (patch) | |
tree | 979a6d9e6a820141faefc02e2fb3622f82abaae1 /ssl/d1_lib.c | |
parent | dcbe723bc5847d598ae5c06a89807cd8e813c605 (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/d1_lib.c')
-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++; |