mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 14:48:10 +02:00
systemd: fix wrong assertion in sd_lldp_get_neighbors()
This commit is contained in:
parent
ab2395c966
commit
46da6e2905
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ _public_ int sd_lldp_get_neighbors(sd_lldp *lldp, sd_lldp_neighbor ***ret) {
|
|||
|
||||
_public_ int sd_lldp_set_neighbors_max(sd_lldp *lldp, uint64_t m) {
|
||||
assert_return(lldp, -EINVAL);
|
||||
assert_return(m <= 0, -EINVAL);
|
||||
assert_return(m > 0, -EINVAL);
|
||||
|
||||
lldp->neighbors_max = m;
|
||||
lldp_make_space(lldp, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue