aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2019-04-16 10:14:50 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2019-04-16 10:14:50 +0200
commitff36bec49b2a1e398a5d7731a7049662f5c1b4ec (patch)
tree8388ae08fef8aec62c858db5c4cb9e78ede1f43d /networking/httpd.c
parentbae8f7eaf2997938615ed4282d6d93d3aa1f3fc1 (diff)
downloadbusybox-ff36bec49b2a1e398a5d7731a7049662f5c1b4ec.tar.gz
busybox-ff36bec49b2a1e398a5d7731a7049662f5c1b4ec.tar.bz2
httpd: add missing {}
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index bc0e386ea..50e832c1f 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1836,10 +1836,11 @@ static void if_ip_denied_send_HTTP_FORBIDDEN_and_exit(void)
(unsigned char)(cur->mask)
);
#endif
- if ((rmt_ip & cur->mask) == cur->ip)
+ if ((rmt_ip & cur->mask) == cur->ip) {
if (cur->allow_deny == 'A')
return;
send_headers_and_exit(HTTP_FORBIDDEN);
+ }
}
if (flg_deny_all) /* depends on whether we saw "D:*" */