diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-29 23:14:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-29 23:14:47 +0000 |
commit | 30edff3c2f5d9c8019217f087b5ddb0cd3caade9 (patch) | |
tree | 1c8cb52e389fc07daf97d6cad27a195a654c4c87 /package/openssl/patches/400-cve-2010-0740.patch | |
parent | dc4712f88790ae4a7211985f3e91e7aec5cb1968 (diff) | |
download | mtk-20170518-30edff3c2f5d9c8019217f087b5ddb0cd3caade9.zip mtk-20170518-30edff3c2f5d9c8019217f087b5ddb0cd3caade9.tar.gz mtk-20170518-30edff3c2f5d9c8019217f087b5ddb0cd3caade9.tar.bz2 |
openssl: add patch for CVE-2010-0740 ("Record of death") vulnerability
SVN-Revision: 20592
Diffstat (limited to 'package/openssl/patches/400-cve-2010-0740.patch')
-rw-r--r-- | package/openssl/patches/400-cve-2010-0740.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/openssl/patches/400-cve-2010-0740.patch b/package/openssl/patches/400-cve-2010-0740.patch new file mode 100644 index 0000000..4c893eb --- /dev/null +++ b/package/openssl/patches/400-cve-2010-0740.patch @@ -0,0 +1,15 @@ +--- a/ssl/s3_pkt.c ++++ b/ssl/s3_pkt.c +@@ -291,9 +291,9 @@ again: + if (version != s->version) + { + SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_WRONG_VERSION_NUMBER); +- /* Send back error using their +- * version number :-) */ +- s->version=version; ++ if ((s->version & 0xFF00) == (version & 0xFF00)) ++ /* Send back error using their minor version number :-) */ ++ s->version = (unsigned short)version; + al=SSL_AD_PROTOCOL_VERSION; + goto f_err; + } |