mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-02-25 21:29:54 +07:00
sd-daemon: fix listening socket verification
This commit is contained in:
parent
19b160fae9
commit
dde770cfc6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user