From dde770cfc6a287772a936be58b73adf9a6c334f5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 May 2010 03:34:04 +0200 Subject: sd-daemon: fix listening socket verification --- src/sd-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sd-daemon.c b/src/sd-daemon.c index 62936ec..ad2bfa8 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; } -- cgit v1.2.3