]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
2007-04-27 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Fri, 27 Apr 2007 17:58:46 +0000 (17:58 +0000)
committerHavoc Pennington <hp@redhat.com>
Fri, 27 Apr 2007 17:58:46 +0000 (17:58 +0000)
* dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from
Tobias Nygren, checking pointer to fd vs. 0 rather than checking
the fd itself

ChangeLog
dbus/dbus-sysdeps-unix.c

index 7c50d8aa206a33100fa7d29df89242874a2fffc5..14130c0269e8ffd878be0bee2176a5a30b7d1c9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-27  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from
+       Tobias Nygren, checking pointer to fd vs. 0 rather than checking
+       the fd itself
+
 2007-04-26 Ralf.Habacker  <ralf.habacker@freenet.de>
 
        * cmake: added debug postfixes to debug exe's for 
index 7d6271ab03e242b431c7f4f229324d0ac6cbbce4..80732a79b75f59163f57a44a9fb9255a7b49ce67 100644 (file)
 #endif
 
 static dbus_bool_t
-_dbus_open_socket (int              *fd,
+_dbus_open_socket (int              *fd_p,
                    int               domain,
                    int               type,
                    int               protocol,
                    DBusError        *error)
 {
-  *fd = socket (domain, type, protocol);
-  if (fd >= 0)
+  *fd_p = socket (domain, type, protocol);
+  if (*fd_p >= 0)
     {
       return TRUE;
     }