From 80e0f42b19d9d73a50c1cf7c5a19d1a2dac70d4e Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sat, 13 Jun 2020 20:50:42 +1000 Subject: 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 Reviewed-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- src/socket_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 5b7c9ea..f8715e6 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -1385,7 +1385,7 @@ static char *socket_wrapper_dir(void) SWRAP_LOG(SWRAP_LOG_ERROR, "Unable to resolve socket_wrapper dir path: %s", strerror(errno)); - return NULL; + abort(); } SWRAP_LOG(SWRAP_LOG_TRACE, "socket_wrapper_dir: %s", swrap_dir); -- cgit