diff options
author | Havoc Pennington <hp@redhat.com> | 2007-04-27 17:58:46 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2007-04-27 17:58:46 +0000 |
commit | c85da0358009d318553506b94f4b24eb8783b6f9 (patch) | |
tree | a2d45678f6e9f91fc08006e658cc5505e19d9661 /dbus/dbus-sysdeps-unix.c | |
parent | 4bd8418548e668cd3fbf8ea5f6aa21d28e14e386 (diff) |
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
Diffstat (limited to 'dbus/dbus-sysdeps-unix.c')
-rw-r--r-- | dbus/dbus-sysdeps-unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 7d6271ab..80732a79 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; } |