summaryrefslogtreecommitdiff
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorjaenicke <jaenicke>2008-10-13 06:43:03 +0000
committerjaenicke <jaenicke>2008-10-13 06:43:03 +0000
commit88e5e5ee42797f8c724ee4c86939fa580d84757b (patch)
tree6b33bedde4590f37ca9f162cd07bc43e7c4a7655 /ssl/d1_pkt.c
parent0273b0fc0648157e8531bb05c5913f74b9d0f63b (diff)
downloadopenssl-88e5e5ee42797f8c724ee4c86939fa580d84757b.tar.gz
Half of the commit for 0.9.8 as the bitmap handling has changed.
(Firstly... ommitted) Secondly, it wasn't even _dropping_ the offending packets, in the non-blocking case. It was just returning garbage instead. PR: #1752 Submitted by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index 0321ee7f1..9e38cb5bf 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -635,6 +635,7 @@ again:
/* check whether this is a repeat, or aged record */
if ( ! dtls1_record_replay_check(s, bitmap))
{
+ rr->length = 0;
s->packet_length=0; /* dump this record */
goto again; /* get another record */
}