mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
sd-netlink: fix assert
nl->fd can be 0.
This commit is contained in:
@@ -52,7 +52,7 @@ static int broadcast_groups_get(sd_netlink *nl) {
|
||||
int r;
|
||||
|
||||
assert(nl);
|
||||
assert(nl->fd > 0);
|
||||
assert(nl->fd >= 0);
|
||||
|
||||
r = getsockopt(nl->fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, NULL, &len);
|
||||
if (r < 0) {
|
||||
|
||||
Reference in New Issue
Block a user