sd-daemon: fix listening socket verification
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user