summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-21 03:34:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-21 03:34:04 +0200
commitdde770cfc6a287772a936be58b73adf9a6c334f5 (patch)
tree78dd38fe28578eacfb498f52a1030b157405da48
parent19b160fae970b720f3498a8dc247c5f04c7cf16a (diff)
sd-daemon: fix listening socket verification
-rw-r--r--src/sd-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sd-daemon.c b/src/sd-daemon.c
index 62936ec5b4..ad2bfa82e7 100644
--- a/src/sd-daemon.c
+++ b/src/sd-daemon.c
@@ -169,7 +169,7 @@ int sd_is_socket(int fd, int type, int listening) {
if (l != sizeof(accepting))
return -EINVAL;
- if (!accepting == !listening)
+ if (!accepting != !listening)
return 0;
}