sd-daemon: fix listening socket verification

This commit is contained in:
Lennart Poettering 2010-05-21 03:34:04 +02:00
parent 19b160fae9
commit dde770cfc6

View 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;
}