From: Lennart Poettering Date: Fri, 21 May 2010 01:34:04 +0000 (+0200) Subject: sd-daemon: fix listening socket verification X-Git-Tag: 0.git+20100605+dfd8ee-1~11^2^2~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde770cfc6a287772a936be58b73adf9a6c334f5;p=systemd sd-daemon: fix listening socket verification --- diff --git a/src/sd-daemon.c b/src/sd-daemon.c index 62936ec5..ad2bfa82 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; }