From ffa322b80f512d7bcbe6cc7591b0a11c0e877a66 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 16 Jul 2009 09:35:27 -0400 Subject: [PATCH] Bug 19432 followup - Fix Debian/FreeBSD CMSGCRED compilation --- dbus/dbus-sysdeps-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 1268768..66bcf3c 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1241,7 +1241,7 @@ _dbus_read_credentials_socket (int client_fd, #elif defined(HAVE_CMSGCRED) struct cmsgcred *cred; - cred = (struct cmsgcred *) CMSG_DATA (&cmsg); + cred = (struct cmsgcred *) CMSG_DATA (&cmsg.hdr); pid_read = cred->cmcred_pid; uid_read = cred->cmcred_euid; #elif defined(LOCAL_CREDS) -- 2.7.4