swrap: Fix access to struct members in log messages.
authorAndreas Schneider <asn@samba.org>
Thu, 2 Oct 2014 05:22:13 +0000 (07:22 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Oct 2014 07:35:10 +0000 (09:35 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/socket_wrapper.c

index 1b3352b..430904d 100644 (file)
@@ -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;