mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
sd-lldp: fix assignment of capabilities in JSON output
Follow-up for 329146a9ac
.
This commit is contained in:
parent
5bafe8d1e7
commit
e2290a7775
@ -776,7 +776,7 @@ int lldp_neighbor_build_json(sd_lldp_neighbor *n, JsonVariant **ret) {
|
||||
(void) sd_lldp_neighbor_get_system_name(n, &system_name);
|
||||
(void) sd_lldp_neighbor_get_system_description(n, &system_description);
|
||||
|
||||
valid_cc = sd_lldp_neighbor_get_enabled_capabilities(n, &cc);
|
||||
valid_cc = sd_lldp_neighbor_get_enabled_capabilities(n, &cc) >= 0;
|
||||
|
||||
return json_build(ret, JSON_BUILD_OBJECT(
|
||||
JSON_BUILD_PAIR_STRING_NON_EMPTY("ChassisID", chassis_id),
|
||||
|
Loading…
Reference in New Issue
Block a user