summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-09-02 11:16:04 +0200
committerAndreas Schneider <asn@samba.org>2014-09-02 13:32:01 +0200
commit6adb3e5e3c5dcd12dfb94e5ae1b836dc9fb12a1a (patch)
treeca585dad2cececc5fbc7e69b84ad410e91613362
parent442ac150e96595ba4025f9f508ce25b9d8a62b23 (diff)
downloadsocket_wrapper-6adb3e5e3c5dcd12dfb94e5ae1b836dc9fb12a1a.tar.gz
socket_wrapper-6adb3e5e3c5dcd12dfb94e5ae1b836dc9fb12a1a.tar.xz
socket_wrapper-6adb3e5e3c5dcd12dfb94e5ae1b836dc9fb12a1a.zip
swrap: Fix access to struct members in log messages.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--src/socket_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 1b3352b..430904d 100644
--- a/src/socket_wrapper.c
+++ b/src/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;