httpd: add missing {}
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
bae8f7eaf2
commit
ff36bec49b
@ -1836,11 +1836,12 @@ static void if_ip_denied_send_HTTP_FORBIDDEN_and_exit(void)
|
|||||||
(unsigned char)(cur->mask)
|
(unsigned char)(cur->mask)
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
if ((rmt_ip & cur->mask) == cur->ip)
|
if ((rmt_ip & cur->mask) == cur->ip) {
|
||||||
if (cur->allow_deny == 'A')
|
if (cur->allow_deny == 'A')
|
||||||
return;
|
return;
|
||||||
send_headers_and_exit(HTTP_FORBIDDEN);
|
send_headers_and_exit(HTTP_FORBIDDEN);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (flg_deny_all) /* depends on whether we saw "D:*" */
|
if (flg_deny_all) /* depends on whether we saw "D:*" */
|
||||||
send_headers_and_exit(HTTP_FORBIDDEN);
|
send_headers_and_exit(HTTP_FORBIDDEN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user