summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-15 22:58:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-05-15 22:58:40 +0000
commiteb38b26dbc2dd15bb6e0a351d0826e7da09b1782 (patch)
tree27a2a66a97074df6415795e74941bde9a8e8a87a /ssl/d1_pkt.c
parent8bbe29f2ca63dc955e3daf854f931acb04a733e6 (diff)
Update from 1.0.0-stable.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 00b3911b27..b53e07d23c 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -762,7 +762,14 @@ start:
pitem_free(item);
}
}
-
+
+ /* Check for timeout */
+ if (dtls1_is_timer_expired(s))
+ {
+ if (dtls1_read_failed(s, -1) > 0);
+ goto start;
+ }
+
/* get new packet if necessary */
if ((rr->length == 0) || (s->rstate == SSL_ST_READ_BODY))
{