mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: applied the patch for security advisory to NGINX cores < 1.17.3 and < 1.16.1 (CVE-2019-9511 CVE-2019-9513 CVE-2019-9516).
This commit is contained in:
@ -404,6 +404,23 @@ if [ "$main_ver" = "1.13.6" ]; then
|
||||
echo
|
||||
fi
|
||||
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.9.5`
|
||||
if [ "$answer" = "Y" ]; then
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.16.1`
|
||||
if [ "$answer" = "N" ]; then
|
||||
echo "$info_txt applying the patch for nginx security advisory (CVE-2019-9511 CVE-2019-9513 CVE-2019-9516)"
|
||||
patch -p0 < $root/patches/patch.2019.h2.txt || exit 1
|
||||
echo
|
||||
elif [ `$root/util/ver-ge "$main_ver" 1.17.0` = "Y" ]; then
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.17.3`
|
||||
if [ "$answer" = "N" ]; then
|
||||
echo "$info_txt applying the patch for nginx security advisory (CVE-2019-9511 CVE-2019-9513 CVE-2019-9516)"
|
||||
patch -p0 < $root/patches/patch.2019.h2.txt || exit 1
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f *.patch || exit 1
|
||||
|
||||
echo "$info_txt applying the always_enable_cc_feature_tests patch to nginx"
|
||||
|
Reference in New Issue
Block a user