diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-15 00:24:17 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-15 00:24:17 +0200 |
commit | c8bae3637212daad992323d4b2a253c3949c9777 (patch) | |
tree | 098882f4638480069b94fe0a8be9abcc2fade87e /src/libsystemd-network/sd-ndisc.c | |
parent | Merge pull request #17351 from poettering/exec-rt-typo-fix (diff) | |
download | systemd-c8bae3637212daad992323d4b2a253c3949c9777.tar.xz systemd-c8bae3637212daad992323d4b2a253c3949c9777.zip |
libsystemd-network: do not request each daemon exist in sd_xxx_stop()
Diffstat (limited to 'src/libsystemd-network/sd-ndisc.c')
-rw-r--r-- | src/libsystemd-network/sd-ndisc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c index 9922203ac4..92e772d352 100644 --- a/src/libsystemd-network/sd-ndisc.c +++ b/src/libsystemd-network/sd-ndisc.c @@ -321,7 +321,8 @@ static int ndisc_timeout_no_ra(sd_event_source *s, uint64_t usec, void *userdata } _public_ int sd_ndisc_stop(sd_ndisc *nd) { - assert_return(nd, -EINVAL); + if (!nd) + return 0; if (nd->fd < 0) return 0; |