summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-08-13 15:14:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-08-13 15:14:32 +0000
commitfbc4a24633bf2e36044fe3ebe39c2ae20812acac (patch)
tree3c6ae7416a85e0951cf94b65535577ddf09ccb7a /ssl/d1_pkt.c
parent4775a897601c3a1d5f69a13113a42726d778c9b4 (diff)
PR: 1997
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Approved by: steve@openssl.org DTLS timeout handling fix.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 8059ebd3a4..0f67f77b1d 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -730,11 +730,8 @@ start:
}
/* Check for timeout */
- if (dtls1_is_timer_expired(s))
- {
- if (dtls1_read_failed(s, -1) > 0)
- goto start;
- }
+ if (dtls1_handle_timeout(s) > 0)
+ goto start;
/* get new packet if necessary */
if ((rr->length == 0) || (s->rstate == SSL_ST_READ_BODY))