summaryrefslogtreecommitdiffstats
path: root/src/set.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-04 21:53:53 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-15 18:29:17 +0200
commit14156fa831e5652ec43552d0dd5c16a7de412261 (patch)
tree92c6a3f2fc34b6280e4c183b3e44bad122d9a7c5 /src/set.c
parentb82e1bf4ba811273341ad4fde272271782a8ada1 (diff)
obj/tunnel: Fix for undefined behaviour
Cppcheck complains: Shifting signed 32-bit value by 31 bits is undefined behaviour. Indeed, NFTNL_OBJ_TUNNEL_ERSPAN_V2_DIR enum value is 31. Make sure behaviour is as intended by shifting unsigned 1. Fixes: ea63a05272f54 ("obj: add tunnel support") Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set.c')
0 files changed, 0 insertions, 0 deletions