commit a80f984ea33c29601da332c272b51e6274bb0d66
parent 21115d4a1befb0b9fd139aaa47a2f22efb0f6ba4
Author: Laslo Hunhold <dev@frign.de>
Date: Thu, 13 Jul 2017 23:17:18 +0200
Fix syntax error
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/quark.c b/quark.c
@@ -568,10 +568,10 @@ sendresponse(int fd, struct request *r)
for (i = 0; i < LEN(vhost); i++) {
/* switch to vhost directory if there is a match */
if (!regexec(&vhost[i].re, r->field[REQ_HOST], 0,
- NULL, 0) {
+ NULL, 0)) {
if (chdir(vhost[i].dir) < 0) {
- return sendstatus(fd, (errno == EACCES)
- ? S_FORBIDDEN : S_NOT_FOUND);
+ return sendstatus(fd, (errno == EACCES) ?
+ S_FORBIDDEN : S_NOT_FOUND);
}
break;
}