mirror of
https://github.com/systemd/systemd.git
synced 2025-03-03 16:58:37 +03:00
lldp: fix assertion checking argument for sd_lldp_set_neighbors_max()
Fixes: 34437b4f9c9c ('sd-lldp: rework sd-lldp API')
This commit is contained in:
parent
7487b48688
commit
9141594cae
@ -466,7 +466,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…
x
Reference in New Issue
Block a user