swrap: Use swrap_create_socket within swrap_accept
authorAnoop C S <anoopcs@redhat.com>
Tue, 29 Aug 2017 09:04:58 +0000 (14:34 +0530)
committerAndreas Schneider <asn@samba.org>
Wed, 2 May 2018 12:23:34 +0000 (14:23 +0200)
commitd0b13efcd590722784baaca85bb5c9b0d5ee2d92
treef986a304701e54a8c433352dc48c72bf972ad280
parente30b080e3188c4498af322c8464569489365d0c3
swrap: Use swrap_create_socket within swrap_accept

Replace the current logic of socket creation within swrap_accept
with more cleaner version using swrap_create_socket.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c