chiark / gitweb /
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 62936ec..ad2bfa8 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;
         }