From b3c72e151f5dc479e600118dbdca2fdc006dbd83 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 2 Oct 2014 07:22:13 +0200 Subject: [PATCH] swrap: Fix access to struct members in log messages. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- lib/socket_wrapper/socket_wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 1b3352b13fa..430904d5a0f 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -2807,7 +2807,7 @@ static int swrap_connect(int s, const struct sockaddr *serv_addr, SWRAP_LOG(SWRAP_LOG_TRACE, "connect() path=%s, fd=%d", - un_addr.un.sun_path, s); + un_addr.sa.un.sun_path, s); /* to give better errors */ @@ -2954,7 +2954,7 @@ static int swrap_bind(int s, const struct sockaddr *myaddr, socklen_t addrlen) SWRAP_LOG(SWRAP_LOG_TRACE, "bind() path=%s, fd=%d", - un_addr.sa_un.sun_path, s); + un_addr.sa.un.sun_path, s); if (ret == 0) { si->bound = 1; -- 2.11.4.GIT