diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-28 21:29:09 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 06:23:45 +0100 |
commit | bd1175bc462063658466f4be9460c629a74c3a3f (patch) | |
tree | 6f5a43fde4b0bed185683a6d0f84d2a813bd84b2 /src/network/networkd-address.c | |
parent | 4645ad47ace6a07011533ccf4e137261f2e466f0 (diff) | |
download | systemd-bd1175bc462063658466f4be9460c629a74c3a3f.tar.gz |
network: add assertions
As they do not have default callback functions.
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 19462d9a0a..37be7944a8 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -570,6 +570,7 @@ int address_configure( assert(link->ifindex > 0); assert(link->manager); assert(link->manager->rtnl); + assert(callback); /* If this is a new address, then refuse adding more than the limit */ if (address_get(link, address->family, &address->in_addr, address->prefixlen, NULL) <= 0 && |