commit 568a09c220a706cb717f345a4da14e935dca1672 from: Omar Polo date: Mon Jan 18 15:25:49 2021 UTC fix requri construction when we switched from one process to two, I introduced a small optimisation: empty string are not send, so we receive NULL. Constructing requri we need to make sure that relpath is not null. commit - f87bf597ea711ef795b27d70fd5b992a80e021c8 commit + 568a09c220a706cb717f345a4da14e935dca1672 blob - 7ae4e9395827f73f056049f42a307889793ddc63 blob + c1e1ad9a59402eb433fdbc4e71c237a3c55914b7 --- ex.c +++ ex.c @@ -208,7 +208,8 @@ launch_cgi(const char *spath, const char *relpath, con goto childerr; if (asprintf(&requri, "%s%s%s", spath, - (relpath != NULL && *relpath == '\0') ? "" : "/", relpath) == -1) + (relpath != NULL && *relpath == '\0') ? "" : "/", + (relpath != NULL ? relpath : "")) == -1) goto childerr; argv[0] = argv[1] = ex;