1 http://rt.openssl.org/Ticket/Display.html?id=1931&user=guest&pass=guest
3 Index: openssl/ssl/d1_both.c
4 ===================================================================
7 @@ -561,7 +561,16 @@ dtls1_process_out_of_seq_message(SSL *s,
8 if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len)
11 - if (msg_hdr->seq <= s->d1->handshake_read_seq)
12 + /* Try to find item in queue, to prevent duplicate entries */
13 + pq_64bit_init(&seq64);
14 + pq_64bit_assign_word(&seq64, msg_hdr->seq);
15 + item = pqueue_find(s->d1->buffered_messages, seq64);
16 + pq_64bit_free(&seq64);
18 + /* Discard the message if sequence number was already there, is
19 + * too far in the future or the fragment is already in the queue */
20 + if (msg_hdr->seq <= s->d1->handshake_read_seq ||
21 + msg_hdr->seq > s->d1->handshake_read_seq + 10 || item != NULL)
23 unsigned char devnull [256];