[hackers] [quark] Fix syntax error || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Thu, 13 Jul 2017 23:17:34 +0200 (CEST)

commit a80f984ea33c29601da332c272b51e6274bb0d66
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Thu Jul 13 23:17:18 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Thu Jul 13 23:17:18 2017 +0200

    Fix syntax error

diff --git a/quark.c b/quark.c
index 14044ae..99c873b 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -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;
                         }
Received on Thu Jul 13 2017 - 23:17:34 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 13 2017 - 23:24:49 CEST