summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-12-06 11:06:58 +0000
committertb <>2021-12-06 11:06:58 +0000
commit60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f (patch)
tree55bcc3ded6ebb2898bb541a7b58b36f5c9bc096d /src/lib
parentf99574add34cb55c0297c6dcad8ed12e9eb18893 (diff)
downloadopenbsd-60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f.tar.gz
openbsd-60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f.tar.bz2
openbsd-60a6a10467f5b7d56c92fe8e4133a6af9e9bd48f.zip
Clean up a bunch of dead code in s_server.c and s_socket.c
jsg's analysis tool flagged a potential double free in do_server(). While this looks like a false positive, we can clean this code up a little: the host name passed to the callbacks isn't used by either sv_body() and www_body(), so it can be made local to do_accept() (an extra variable would not even be needed). Simplify the callbacks' signatures accordingly. Remove some commented out linger code that would never be used again anyway. ok inoguchi jsg
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions