Merge pull request #2293 from zonque/issue-2292

sd-netlink: fix assert
This commit is contained in:
Tom Gundersen 2016-01-11 13:17:15 +01:00
commit cfa0537cc3

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