swrap: slightly cleanup logic in swrap_close
authorMichael Adam <obnox@samba.org>
Tue, 25 Oct 2016 11:42:05 +0000 (13:42 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 25 Oct 2016 12:55:13 +0000 (14:55 +0200)
commitddba8cf2058d662d628fc62f5896b873754ba7c3
tree0e4ba31327d1a3b859171f3c6eb791c9c5aa933c
parent3b39c88b138f88bffc7d71572a9c6a83e54a03c9
swrap: slightly cleanup logic in swrap_close

This moves the libc_close() to one central point, thereby
grouping the fd-related operations together and the the
socket-info related operations after that.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c