From f4bd426f3cae625ff0627d2d0f1459f0328404b6 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 4 May 2021 22:57:44 +0200 Subject: [PATCH] Fix FastCGI compression --- src/lib/fastcgi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/fastcgi.c b/src/lib/fastcgi.c index 3351a63..6474ec0 100644 --- a/src/lib/fastcgi.c +++ b/src/lib/fastcgi.c @@ -471,9 +471,10 @@ int fastcgi_send(fastcgi_conn *conn, sock *client, int flags) { } else if (header.type == FCGI_STDERR) { fastcgi_php_error(content, content_len, buf0); } else if (header.type == FCGI_STDOUT) { - unsigned long avail_in = content_len, avail_out; - void *next_in = ptr; + unsigned long avail_in, avail_out; out: + avail_in = content_len; + void *next_in = ptr; do { int buf_len = content_len; if (flags & FASTCGI_COMPRESS) {