From b7d16a91d670c56bc5051cf8042882515d8de74d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 17 Jan 2018 01:29:13 +0900 Subject: [PATCH] networkd: fix wrong argument check --- src/network/networkd-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 526c4d46e4d..749b87f336d 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -1357,7 +1357,7 @@ int manager_dhcp6_prefix_remove_all(Manager *m, Link *link) { struct in6_addr *addr; assert_return(m, -EINVAL); - assert_return(l, -EINVAL); + assert_return(link, -EINVAL); HASHMAP_FOREACH_KEY(l, addr, m->dhcp6_prefixes, i) { if (l != link)