From: Qu Haoran Date: Mon, 9 Feb 2009 22:34:56 +0000 (-0800) Subject: netfilter: xt_sctp: sctp chunk mapping doesn't work X-Git-Tag: v2.6.29-rc5~3^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4e2675a61890a84849a24affedf80d5cae8b199;p=platform%2Fupstream%2Fkernel-adaptation-pc.git netfilter: xt_sctp: sctp chunk mapping doesn't work When user tries to map all chunks given in argument, kernel works on a copy of the chunkmap, but at the end it doesn't check the copy, but the orginal one. Signed-off-by: Qu Haoran Signed-off-by: Nicolas Dichtel Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c index e223cb4..a189ada9 100644 --- a/net/netfilter/xt_sctp.c +++ b/net/netfilter/xt_sctp.c @@ -105,7 +105,7 @@ match_packet(const struct sk_buff *skb, switch (chunk_match_type) { case SCTP_CHUNK_MATCH_ALL: - return SCTP_CHUNKMAP_IS_CLEAR(info->chunkmap); + return SCTP_CHUNKMAP_IS_CLEAR(chunkmapcopy); case SCTP_CHUNK_MATCH_ANY: return false; case SCTP_CHUNK_MATCH_ONLY: