X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fcallfcgi.c;h=27c9c5e609f9dba4de184bd20b96db06e8274e95;hp=1ff521e6b56cfa1fd303fef1a90aa6510ebfe5e5;hb=b77076c4041fdd70f9c5d1bcc48ec248d7e6fd3b;hpb=e25bf4f9646b5ee2cfe363fca67a32d4e2a3f0cc 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)