Reverted fix to PR#1931.. breaks compilation in 0.9.8.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 17 May 2009 16:28:13 +0000 (16:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 17 May 2009 16:28:13 +0000 (16:28 +0000)
ssl/d1_both.c

index 63d00062f2aaba8ece742b01646a2ceff298cc00..5727c73776be506377ef2b9ec39c63091caaf22b 100644 (file)
@@ -561,16 +561,7 @@ dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st* msg_hdr, int *ok)
        if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
                goto err;
 
-       /* Try to find item in queue, to prevent duplicate entries */
-       memset(seq64be,0,sizeof(seq64be));
-       seq64be[6] = (unsigned char) (msg_hdr->seq>>8);
-       seq64be[7] = (unsigned char) msg_hdr->seq;
-       item = pqueue_find(s->d1->buffered_messages, seq64be);
-       
-       /* Discard the message if sequence number was already there, is
-        * too far in the future or the fragment is already in the queue */
-       if (msg_hdr->seq <= s->d1->handshake_read_seq ||
-               msg_hdr->seq > s->d1->handshake_read_seq + 10 || item != NULL)
+       if (msg_hdr->seq <= s->d1->handshake_read_seq)
                {
                unsigned char devnull [256];