From 6330489bbf1263d91dbed482f038efd1ce30ebf6 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 27 Apr 2007 17:58:46 +0000 Subject: 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 --- dbus/dbus-sysdeps-unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dbus/dbus-sysdeps-unix.c') diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 7573e49f..1c96d6e3 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; } -- cgit