Fix syntax error
This commit is contained in:
parent
21115d4a1b
commit
a80f984ea3
1 changed files with 3 additions and 3 deletions
6
quark.c
6
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue