Commit Diff
- Commit:
7808978667888512395e63519751796dacae8550
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- 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); }