httpd: if remote IP is denied, send FORBIDDEN reply earlier
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 14 Apr 2019 17:57:13 +0000 (19:57 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 14 Apr 2019 17:57:13 +0000 (19:57 +0200)
commit51792e126bddaabf572132f1e0d4ed9bfd324c58
treec73fabbd6ad051a3a8d257c33ecb756a392932b4
parent60bf77f7e7c4513a781e9acc1b9bca64c4051140
httpd: if remote IP is denied, send FORBIDDEN reply earlier

While at it, fix sighup_handler to not clobber errno.

function                                             old     new   delta
send_HTTP_FORBIDDEN_and_exit_if_denied_ip              -      47     +47
sighup_handler                                        15      30     +15
handle_incoming_and_exit                            2791    2763     -28
checkPermIP                                           48       -     -48
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 62/-76)            Total: -14 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c