Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue #1875348 by radimklaska - Fix for Nginx 1.3.10 bug causing rand…

…om segfaults.
  • Loading branch information...
commit 82aac16d45f456b5763090afa3e59184baf29128 1 parent 3deab8f
@omega8cc authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 BARRACUDA.sh.txt
View
5 BARRACUDA.sh.txt
@@ -2953,6 +2953,11 @@ install_upgrade_nginx () {
wget -q -U iCab http://files.aegir.cc/dev/nginx-$_NGINX_VERSION.tar.gz
tar -xzf nginx-$_NGINX_VERSION.tar.gz
sed -i "s/nginx/$_CUSTOM_NAME/g" /var/opt/nginx-$_NGINX_VERSION/src/core/nginx.h &> /dev/null
+ if [ "$_NGINX_VERSION" = "1.3.10" ] ; then
+ cd /var/opt/nginx-$_NGINX_VERSION
+ wget -q -U iCab https://trac.nginx.org/nginx/raw-attachment/ticket/268/fix_valgirnd_error.patch
+ patch -p1 < fix_valgirnd_error.patch &> /dev/null
+ fi
if [ "$_PURGE_MODE" = "ON" ] && [ -z "$_NGINX_EXTRA_CONF" ] ; then
_NGINX_EXTRA="--add-module=/var/opt/ngx_cache_purge/"
elif [ ! -z "$_NGINX_EXTRA_CONF" ] && [ "$_PURGE_MODE" = "OFF" ] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.