From: Havoc Pennington Date: Fri, 27 Apr 2007 17:58:46 +0000 (+0000) Subject: 2007-04-27 Havoc Pennington X-Git-Tag: dbus-1.1.0~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c85da0358009d318553506b94f4b24eb8783b6f9;p=thirdparty%2Fdbus.git 2007-04-27 Havoc Pennington * 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 --- diff --git a/ChangeLog b/ChangeLog index 7c50d8aa2..14130c026 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-27 Havoc Pennington + + * 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 * cmake: added debug postfixes to debug exe's for diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 7d6271ab0..80732a79b 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -76,14 +76,14 @@ #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; }