Skip to content

Commit

Permalink
netfilter: xt_sctp: sctp chunk mapping doesn't work
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Nicolas Dichtel <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Qu Haoran authored and davem330 committed Feb 9, 2009
1 parent 1f9da25 commit d4e2675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d4e2675

Please sign in to comment.