summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-08-12 13:21:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-08-12 13:21:26 +0000
commita4bade7aaca2f31c8b3e4e2b9f1bf5da5570f6e2 (patch)
tree5ffb65dbf09646f3b61132915b517f487042bd4c /ssl/d1_pkt.c
parente322b5d167066db7caa4e9cedaeaec680ec8c75b (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 d9a81140ea..0664636b52 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -773,11 +773,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))