Little bug in dbus/dbus-sysdeps.c

Havoc Pennington hp at redhat.com
Thu Aug 4 03:39:57 EST 2005


Thanks, fixed.

Havoc

On Wed, 2005-08-03 at 19:02 +0200, Julien PUYDT wrote:
> Hi,
> 
> at line 895, there is:
> 
>    if (cmsg->hdr.cmsg_len < sizeof (cmsg) ...
> 
> but it should be:
> 
>    if (cmsg.hdr.cmsg_len < sizeof (cmsg) ...
> 
> since the declaration of cmsg is:
> 
>    struct {
>            struct cmsghdr hdr;
>            struct cmsgcred cred;
>    } cmsg;
> 
> All of this is code in #ifdef HAVE_CMSGCRED #endif, so that may be the 
> reason why it wasn't seen before.
> 
> Snark on #gnome-hackers



More information about the dbus mailing list