diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-18 15:08:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-19 17:26:27 +0200 |
commit | 7b491e0c068c9881accfb571db3fb8f2f5799ca2 (patch) | |
tree | b23ad7b86dff612ba716e2e5a7deaca5317e6a32 /src/erec.c | |
parent | 56c90a2dd2eb9cb63a6d74d0f5ce8075bef3895b (diff) |
evaluate: perform mark datatype compatibility check from maps
Wrap datatype compatibility check into a helper function and use it for
map evaluation, otherwise the following bogus error message is
displayed:
Error: datatype mismatch, map expects packet mark, mapping expression has type integer
Add unit tests to improve coverage for this usecase.
Fixes: 5d8e33ddb112 ("evaluate: relax type-checking for integer arguments in mark statements")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/erec.c')
0 files changed, 0 insertions, 0 deletions