]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
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 1268768bff9ab8d1bb997eee451d34d637d2d061..66bcf3cb8fc6651d646a8d595b5bccf2f31b5b37 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)