diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 9fe6b2b8f728e93e411ae68353dddce015e2fb58..48e8b6ffbb839baa8fb76936246c0059ae83e5cd 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++;