openssl-CVE-2009-1379.patch 636 B

1234567891011121314151617181920
  1. diff -Nura openssl-0.9.8l/ssl/d1_both.c openssl-0.9.8l-CVE-2009-1379/ssl/d1_both.c
  2. --- openssl-0.9.8l/ssl/d1_both.c 2007-10-17 18:17:49.000000000 -0300
  3. +++ openssl-0.9.8l-CVE-2009-1379/ssl/d1_both.c 2009-11-10 13:36:55.000000000 -0300
  4. @@ -519,6 +519,7 @@
  5. if ( s->d1->handshake_read_seq == frag->msg_header.seq)
  6. {
  7. + unsigned long frag_len = frag->msg_header.frag_len;
  8. pqueue_pop(s->d1->buffered_messages);
  9. al=dtls1_preprocess_fragment(s,&frag->msg_header,max);
  10. @@ -536,7 +537,7 @@
  11. if (al==0)
  12. {
  13. *ok = 1;
  14. - return frag->msg_header.frag_len;
  15. + return frag_len;
  16. }
  17. ssl3_send_alert(s,SSL3_AL_FATAL,al);