From: Lutz Jänicke Date: Mon, 13 Oct 2008 06:43:03 +0000 (+0000) Subject: Half of the commit for 0.9.8 as the bitmap handling has changed. X-Git-Tag: OpenSSL_0_9_8k^2~236 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=570006f3a2b327d6092566f0a45265251e393823;p=oweals%2Fopenssl.git 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 --- diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 0321ee7f15..9e38cb5bf9 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 */ }