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:
parent
4a581a5e84
commit
64d18c0260
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue