summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-ipv4ll.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-15 07:24:17 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-15 07:24:17 +0900
commitc8bae3637212daad992323d4b2a253c3949c9777 (patch)
tree098882f4638480069b94fe0a8be9abcc2fade87e /src/libsystemd-network/sd-ipv4ll.c
parent1008f5b069d574ce1ebe18572fda30ac964ba147 (diff)
downloadsystemd-c8bae3637212daad992323d4b2a253c3949c9777.tar.gz
libsystemd-network: do not request each daemon exist in sd_xxx_stop()
Diffstat (limited to 'src/libsystemd-network/sd-ipv4ll.c')
-rw-r--r--src/libsystemd-network/sd-ipv4ll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c
index 4f4d9ebe87..293a4644a2 100644
--- a/src/libsystemd-network/sd-ipv4ll.c
+++ b/src/libsystemd-network/sd-ipv4ll.c
@@ -89,7 +89,8 @@ int sd_ipv4ll_new(sd_ipv4ll **ret) {
}
int sd_ipv4ll_stop(sd_ipv4ll *ll) {
- assert_return(ll, -EINVAL);
+ if (!ll)
+ return 0;
return sd_ipv4acd_stop(ll->acd);
}