Update from 1.0.0-stable.
[openssl.git] / ssl / d1_pkt.c
index 00b3911..b53e07d 100644 (file)
@@ -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))
                {