hostapd: upgrade to latest git version, add patches to fix multi-bss support with...
[openwrt.git] / package / openssl / patches / 900-CVE-2009-1378.patch
1 http://rt.openssl.org/Ticket/Display.html?id=1931&user=guest&pass=guest
2
3 Index: openssl/ssl/d1_both.c
4 ===================================================================
5 --- d1_both.c.orig
6 +++ d1_both.c
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)
9 goto err;
10
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);
17 +
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)
22 {
23 unsigned char devnull [256];
24
This page took 0.044002 seconds and 5 git commands to generate.