diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-03-17 06:49:33 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-03-17 06:49:33 +0000 |
commit | 73d7ba1d1339ede5f638e2962e187555aa8c7aa3 (patch) | |
tree | d17f00cbaac458240e579f8609f142d22c045e50 /dbus | |
parent | f7c24715b5489b28b47499eb252b941b735fa1bc (diff) |
2003-03-17 Anders Carlsson <andersca@codefactory.se>
* bus/dispatch.c: (bus_dispatch):
Refetch the service name since it may have been reallocated
when dbus_message_set_sender was called.
* dbus/dbus-sysdeps.c: (_dbus_accept):
Add address and address length variables and use them to stop
valgrind from complaining.
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-sysdeps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index 8abcc5fc..5a79e8fc 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -786,9 +786,13 @@ int _dbus_accept (int listen_fd) { int client_fd; + struct sockaddr addr; + socklen_t addrlen; + + addrlen = sizeof (addr); retry: - client_fd = accept (listen_fd, NULL, NULL); + client_fd = accept (listen_fd, &addr, &addrlen); if (client_fd < 0) { |