summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2016-01-11 13:17:15 +0100
committerTom Gundersen <teg@jklm.no>2016-01-11 13:17:15 +0100
commitcfa0537cc33530a70bed3b27aa9f48e2607a9bde (patch)
treeb7c5d79d4a216da8c3b09ce01106336f22c04ffe
parent5d354397effd7ca19dd456d9cb19399a7a64dd4e (diff)
parentf78bc916a6ccafecec2c2526bbd65a3d61f7b413 (diff)
Merge pull request #2293 from zonque/issue-2292
sd-netlink: fix assert
-rw-r--r--src/libsystemd/sd-netlink/netlink-socket.c2
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) {