]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_json: Fix flowtable prio value parsing
authorPhil Sutter <phil@nwl.cc>
Wed, 20 Sep 2023 17:33:40 +0000 (19:33 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 22 Sep 2023 08:55:25 +0000 (10:55 +0200)
commit407e947dfc53827bd27689f2de9ed7f14f1b092e
tree03bed7914a595d5f0654bdf6fbeab11bbb4a1e95
parent34c1337296807b3a3147c95268f5e4ca70811779
parser_json: Fix flowtable prio value parsing

Using format specifier 'I' requires a 64bit variable to write into. The
temporary variable 'prio' is of type int, though.

Fixes: 586ad210368b7 ("libnftables: Implement JSON parser")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/parser_json.c