summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}