lldp: fix assertion checking argument for sd_lldp_set_neighbors_max()

Fixes: 34437b4f9c ('sd-lldp: rework sd-lldp API')
This commit is contained in:
Thomas Haller
2020-06-06 10:38:50 +02:00
committed by Daan De Meyer
parent 7487b48688
commit 9141594cae
+1 -1
View File
@@ -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);