commit 7808978667888512395e63519751796dacae8550 from: Omar Polo date: Mon Feb 01 08:38:48 2021 UTC fix computed offset Oh my, this is such a stupid mistake. It went undiscovered only because I always used CGI scripts on the first vhost (and hence the offset would be 0) and never on the others. commit - 57d0d0adba61856956191554a9624334f083c2f6 commit + 7808978667888512395e63519751796dacae8550 blob - 15050b5bc0b1a3cb5220cbbf476c2502646f0c60 blob + 04caedc4759aa3f09ad0ce28a1054fd9e460004e --- ex.c +++ ex.c @@ -72,7 +72,7 @@ send_vhost(int fd, struct vhost *vhost) if (vhost < hosts || vhost > hosts + HOSTSLEN) return 0; - n = hosts - vhost; + n = vhost - hosts; return write(fd, &n, sizeof(n)) == sizeof(n); }