netfilter: uapi: Avoid undefined left-shift in xt_sctp.h
authorPhil Sutter <phil@nwl.cc>
Thu, 5 Dec 2019 12:35:11 +0000 (13:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Dec 2019 12:02:07 +0000 (13:02 +0100)
commit164166558aacea01b99c8c8ffb710d930405ba69
treedbe0310da6a3b6fce9d8fe8a87122581250832ac
parent0b9173f4688dfa7c5d723426be1d979c24ce3d51
netfilter: uapi: Avoid undefined left-shift in xt_sctp.h

With 'bytes(__u32)' being 32, a left-shift of 31 may happen which is
undefined for the signed 32-bit value 1. Avoid this by declaring 1 as
unsigned.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/xt_sctp.h