swrap: split out swrap_remove_wrapper() to handle swrap_close() and swrap_remove_stale()
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Feb 2021 11:14:06 +0000 (12:14 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 15 Mar 2021 07:04:58 +0000 (08:04 +0100)
commit4ad5a5af0bdf94497f068f10d6c09520702fd50f
tree297dad3c6c9c4634e40e8f32c3ae86b5678a4e51
parentd28fdbf203976290e6ba97577e1979df8f99bb61
swrap: split out swrap_remove_wrapper() to handle swrap_close() and swrap_remove_stale()

Except of closing the fd, both should do the same, even indicating a TCP
close in the pcap file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14640

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c