]> err.no Git - systemd/commitdiff
sd-daemon: fix listening socket verification
authorLennart Poettering <lennart@poettering.net>
Fri, 21 May 2010 01:34:04 +0000 (03:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 May 2010 01:34:04 +0000 (03:34 +0200)
src/sd-daemon.c

index 62936ec5b4e66c0f98b906851a56838c5eb5d200..ad2bfa82e72f4e76e9d46edb069a35c14459b9ec 100644 (file)
@@ -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;
         }