update openssl to 0.9.8l -- thanks puchu
[openwrt/staging/yousong.git] / package / openssl / patches / 900-CVE-2009-1379.patch
1 Index: openssl/ssl/d1_both.c
2 RCS File: /v/openssl/cvs/openssl/ssl/d1_both.c,v
3 rcsdiff -q -kk '-r1.14.2.6' '-r1.14.2.7' -u '/v/openssl/cvs/openssl/ssl/d1_both.c,v' 2>/dev/null
4 --- d1_both.c 2009/04/22 12:17:02 1.14.2.6
5 +++ d1_both.c 2009/05/13 11:51:30 1.14.2.7
6 @@ -519,6 +519,7 @@
7
8 if ( s->d1->handshake_read_seq == frag->msg_header.seq)
9 {
10 + unsigned long frag_len = frag->msg_header.frag_len;
11 pqueue_pop(s->d1->buffered_messages);
12
13 al=dtls1_preprocess_fragment(s,&frag->msg_header,max);
14 @@ -536,7 +537,7 @@
15 if (al==0)
16 {
17 *ok = 1;
18 - return frag->msg_header.frag_len;
19 + return frag_len;
20 }
21
22 ssl3_send_alert(s,SSL3_AL_FATAL,al);