1
0
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:
Yu Watanabe 2024-03-02 11:08:18 +09:00
parent 5bafe8d1e7
commit e2290a7775

View File

@ -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),