diff options
author | Phil Sutter <phil@nwl.cc> | 2018-06-22 14:18:58 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-06-26 20:19:40 +0200 |
commit | 5d592ce6c4596b25d5779a224d03c096bc25db54 (patch) | |
tree | 59aaa78e46c57bf10b6c36a4652f89eca57f9582 /src/obj/ct_helper.c | |
parent | 9737856067b97cbb869e04fc6b6e65c1d859f521 (diff) |
expr/data_reg: Fix JSON parsing on big endian
Since reg->len is a 32bit variable, one needs to pass NFTNL_TYPE_U32 to
nftnl_jansson_parse_val(). Otherwise, only the most significant byte in
that variable is being written to.
Since the value could potentially be larger than 255, increase node_name
buffer to avoid a compiler warning.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/obj/ct_helper.c')
0 files changed, 0 insertions, 0 deletions