sd-netlink: fix assert

nl->fd can be 0.
This commit is contained in:
Daniel Mack 2016-01-10 15:36:03 +01:00
parent cf6c8c46fc
commit f78bc916a6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {