diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-03 19:24:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-03 19:24:12 +0200 |
commit | 3338b9595b69a4a6de43bbd0f49b941eba7f6b0e (patch) | |
tree | c6a6081bfbfc15ef49df9d4f18b3d7e745d383c9 /src/bridge.c | |
parent | ba8d3790e85ce6bacb2e567e0ba48ceb8e66770e (diff) |
fix a couple of AF_UNIX connect() calls
Diffstat (limited to 'src/bridge.c')
-rw-r--r-- | src/bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge.c b/src/bridge.c index 1f7cf3a9b9..bfb38a8bb4 100644 --- a/src/bridge.c +++ b/src/bridge.c @@ -160,7 +160,7 @@ int main(int argc, char *argv[]) { sa.un.sun_family = AF_UNIX; strncpy(sa.un.sun_path, "/run/dbus/system_bus_socket", sizeof(sa.un.sun_path)); - if (connect(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + 1 + strlen(sa.un.sun_path+1)) < 0) { + if (connect(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(sa.un.sun_path)) < 0) { log_error("Failed to connect: %m"); goto finish; } |