diff options
author | 2008-11-24 13:44:55 +0100 | |
---|---|---|
committer | 2008-11-24 13:47:21 +0100 | |
commit | 328bd8997dbb7184d5389e45c642af44ae6e9043 (patch) | |
tree | 92f552084bc34d35472f18fddbd000281640f6af /net/ipv4/netfilter.c | |
parent | netfilter: ip{,6}t_policy.h should include xp_policy.h (diff) | |
download | wireguard-linux-328bd8997dbb7184d5389e45c642af44ae6e9043.tar.xz wireguard-linux-328bd8997dbb7184d5389e45c642af44ae6e9043.zip |
netfilter: nf_conntrack_proto_sctp: avoid bogus warning
net/netfilter/nf_conntrack_proto_sctp.c: In function 'sctp_packet':
net/netfilter/nf_conntrack_proto_sctp.c:376: warning: array subscript is above array bounds
gcc doesn't realize that do_basic_checks() guarantees that there is
at least one valid chunk and thus new_state is never SCTP_CONNTRACK_MAX
after the loop. Initialize to SCTP_CONNTRACK_NONE to avoid the warning.
Based on patch by Wu Fengguang <wfg@linux.intel.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4/netfilter.c')
0 files changed, 0 insertions, 0 deletions