diff options
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 9cfc0955d3..0555d317a4 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -79,7 +79,12 @@ int address_configure(Address *address, Link *link, _cleanup_sd_rtnl_message_unref_ sd_rtnl_message *req = NULL; int r; + assert(address); + assert(address->family == AF_INET || address->family == AF_INET6); + assert(link); + assert(link->ifindex > 0); assert(link->manager); + assert(link->manager->rtnl); r = sd_rtnl_message_addr_new(RTM_NEWADDR, link->ifindex, address->family, address->prefixlen, @@ -125,8 +130,6 @@ int address_configure(Address *address, Link *link, return r; } - link->rtnl_messages ++; - return 0; } |