Bug 19432 followup - Fix Debian/FreeBSD CMSGCRED compilation
authorAurelien Jarno <aurel32@debian.org>
Thu, 16 Jul 2009 13:35:27 +0000 (09:35 -0400)
committerColin Walters <walters@verbum.org>
Thu, 16 Jul 2009 13:35:27 +0000 (09:35 -0400)
dbus/dbus-sysdeps-unix.c

index 1268768..66bcf3c 100644 (file)
@@ -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)