diff options
author | Daniel Mack <daniel@zonque.org> | 2016-01-10 15:36:03 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2016-01-10 15:36:03 +0100 |
commit | f78bc916a6ccafecec2c2526bbd65a3d61f7b413 (patch) | |
tree | 0d9f47a4a5fb4b16b8b327418afa743564c7cac0 /src/libsystemd | |
parent | cf6c8c46fceac83dfb3f2d55fae5220e60841553 (diff) |
sd-netlink: fix assert
nl->fd can be 0.
Diffstat (limited to 'src/libsystemd')
-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) { |