From f78bc916a6ccafecec2c2526bbd65a3d61f7b413 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Sun, 10 Jan 2016 15:36:03 +0100 Subject: sd-netlink: fix assert nl->fd can be 0. --- src/libsystemd/sd-netlink/netlink-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsystemd/sd-netlink') 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) { -- cgit v1.2.3-54-g00ecf