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

Replace the current logic of socket creation within swrap_socket
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