Skip to content

socket: avoid getpeername after shutdown(SHUT_WR)

Giuseppe Scrivano requested to merge giuseppe/libslirp:fix-shutdown-wr into master

avoid using getpeername(2) if the socket was already closed for writing, as it will report the socket as disconnected.

Closes: #12 (closed)

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

Merge request reports

Loading