summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2008-10-13 08:43:03 +0200
committerLutz Jänicke <jaenicke@openssl.org>2008-10-13 08:43:03 +0200
commit570006f3a2b327d6092566f0a45265251e393823 (patch)
tree5136d8d4f339adef45c3596e98be858866653140 /ssl/d1_pkt.c
parentType-checked (and modern C compliant) OBJ_bsearch. (diff)
downloadopenssl-570006f3a2b327d6092566f0a45265251e393823.tar.xz
openssl-570006f3a2b327d6092566f0a45265251e393823.zip
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 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 */
}