bugfix: applied the patch for secrity advisory to NGINX cores (CVE-2023-44487). (#931)

This commit is contained in:
Johnny Wang
2023-10-18 15:00:46 +08:00
committed by jiahao
parent cd976f9286
commit f07cb6a7f0
2 changed files with 61 additions and 0 deletions

View File

@ -503,6 +503,16 @@ if [ "$answer" = "Y" ]; then
fi
fi
answer=`$root/util/ver-ge "$main_ver" 1.9.5`
if [ "$answer" = "Y" ]; then
answer=`$root/util/ver-ge "$main_ver" 1.25.2`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the patch for nginx security advisory (CVE-2023-44487)"
patch -p1 < $root/patches/patch.2023.h2.txt || exit 1
echo
fi
fi
echo "$info_txt applying the upstream_timeout_fields patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-upstream_timeout_fields.patch || exit 1
echo