diff options
author | Tom Gundersen <teg@jklm.no> | 2016-01-11 13:17:15 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-01-11 13:17:15 +0100 |
commit | cfa0537cc33530a70bed3b27aa9f48e2607a9bde (patch) | |
tree | b7c5d79d4a216da8c3b09ce01106336f22c04ffe /src | |
parent | 5d354397effd7ca19dd456d9cb19399a7a64dd4e (diff) | |
parent | f78bc916a6ccafecec2c2526bbd65a3d61f7b413 (diff) |
Merge pull request #2293 from zonque/issue-2292
sd-netlink: fix assert
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-socket.c b/src/libsystemd/sd-netlink/netlink-socket.c index 2181201017..e95c99af0d 100644 --- a/src/libsystemd/sd-netlink/netlink-socket.c +++ b/src/libsystemd/sd-netlink/netlink-socket.c @@ -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) { |