diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-13 11:44:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-13 11:44:04 +0000 |
commit | cddd00166c47dc379d0300625a34e6201b51860c (patch) | |
tree | 2feeb05cd4e8025bce08d02c6d4fa908fb397cb0 /ssl/d1_pkt.c | |
parent | 0190aa735308635d4c63d7f6bdbe7f65ec6db26a (diff) |
PR: 1984
Submitted by: Michael Tüxen <Michael.Tuexen@lurchi.franken.de>
Approved by: steve@openssl.org
Don't concatenate reads in DTLS.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 7 |
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; |