1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

json.reserve: non-matching messages should be silently discarded

This commit is contained in:
Steffen Vogel 2018-05-26 02:53:20 +02:00
parent 4a581a5e84
commit 64d18c0260

View file

@ -152,7 +152,7 @@ static int json_reserve_unpack_sample(struct io *io, json_t *json_smp, struct sa
return -1;
if (id != json_integer_value(json_target))
return -1;
return 0;
}
#else
if (json_target && io->input.node) {
@ -161,7 +161,7 @@ static int json_reserve_unpack_sample(struct io *io, json_t *json_smp, struct sa
return -1;
if (strcmp(target, io->input.node->name))
return -1;
return 0;
}
#endif