X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallfcgi.c;h=27c9c5e609f9dba4de184bd20b96db06e8274e95;hb=349b25644067aa6754197a991c3ba00143d60a19;hp=1ff521e6b56cfa1fd303fef1a90aa6510ebfe5e5;hpb=e25bf4f9646b5ee2cfe363fca67a32d4e2a3f0cc;p=ashd.git diff --git a/src/callfcgi.c b/src/callfcgi.c index 1ff521e..27c9c5e 100644 --- a/src/callfcgi.c +++ b/src/callfcgi.c @@ -465,8 +465,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) } else { bufaddenv(dst, "SCRIPT_NAME", "%s", url); } - free(url); bufaddenv(dst, "QUERY_STRING", "%s", qp?qp:""); + free(url); if((h = getheader(req, "Host")) != NULL) bufaddenv(dst, "SERVER_NAME", "%s", h); if((h = getheader(req, "X-Ash-Server-Port")) != NULL)