summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-07-13 13:44:30 +0200
committerDr. Stephen Henson <steve@openssl.org>2009-07-13 13:44:30 +0200
commit5c168710acb6d249834a60d8b3c60a2ec497b816 (patch)
tree3f4b37241876c2bcff02bdcf77e8ffc6f735b847 /ssl/d1_pkt.c
parentUse new time routines to avoid possible overflow. (diff)
downloadopenssl-5c168710acb6d249834a60d8b3c60a2ec497b816.tar.xz
openssl-5c168710acb6d249834a60d8b3c60a2ec497b816.zip
Update from 1.0.0-stable.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 882228c7fd..b9909b417b 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -561,7 +561,12 @@ again:
/* read timeout is handled by dtls1_read_bytes */
if (n <= 0) return(n); /* error or non-blocking */
- OPENSSL_assert(s->packet_length == DTLS1_RT_HEADER_LENGTH);
+ /* this packet contained a partial record, dump it */
+ if (s->packet_length != DTLS1_RT_HEADER_LENGTH)
+ {
+ s->packet_length = 0;
+ goto again;
+ }
s->rstate=SSL_ST_READ_BODY;