From: Patrick McHardy Date: Mon, 24 Nov 2008 12:44:55 +0000 (+0100) Subject: netfilter: nf_conntrack_proto_sctp: avoid bogus warning X-Git-Tag: v2.6.29-rc1~581^2~367^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=328bd8997dbb7184d5389e45c642af44ae6e9043;p=pandora-kernel.git 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 Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed