swrap: Abort on failure to use SOCKET_WRAPPER_DIR
authorMartin Schwenke <martin@meltin.net>
Sat, 13 Jun 2020 10:50:42 +0000 (20:50 +1000)
committerStefan Metzmacher <metze@samba.org>
Mon, 22 Jun 2020 14:43:01 +0000 (16:43 +0200)
commit80e0f42b19d9d73a50c1cf7c5a19d1a2dac70d4e
tree5acfc4bb87e3408ac454cb4732e039459a8d1a8d
parent49aeafa2c530e35a43358977766899d45a0c8b28
swrap: Abort on failure to use SOCKET_WRAPPER_DIR

If SOCKET_WRAPPER_DIR is set the intention is to use socket wrapper.
Returning NULL means socket wrapper is disabled.  The only sure way to
avoid running without socket wrapper is to abort.

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