summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2021-12-06 11:06:58 +0000
committertb <>2021-12-06 11:06:58 +0000
commitd41743ea4a2d346f9a3661d5b6f9a056383e90eb (patch)
tree55bcc3ded6ebb2898bb541a7b58b36f5c9bc096d /src/lib/libc
parent14494d6d322e4ba091e6c7c40262b53340b24485 (diff)
downloadopenbsd-d41743ea4a2d346f9a3661d5b6f9a056383e90eb.tar.gz
openbsd-d41743ea4a2d346f9a3661d5b6f9a056383e90eb.tar.bz2
openbsd-d41743ea4a2d346f9a3661d5b6f9a056383e90eb.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/libc')
0 files changed, 0 insertions, 0 deletions