projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abdcf6
)
[NETFILTER]: xt_sctp: fix --chunk-types matching
author
Jorge Matias
<
[email protected]
>
Tue, 27 Jun 2006 10:01:25 +0000
(
03:01
-0700)
committer
David S. Miller
<
[email protected]
>
Thu, 29 Jun 2006 23:57:46 +0000
(16:57 -0700)
xt_sctp uses an incorrect header offset when --chunk-types is used.
Signed-off-by: Jorge Matias <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/netfilter/xt_sctp.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_sctp.c
b/net/netfilter/xt_sctp.c
index 9316c753692fef1bbbd81f71a381000d6edbb024..843383e01d4155179c66928fafd08e5e64f2f8ac 100644
(file)
--- a/
net/netfilter/xt_sctp.c
+++ b/
net/netfilter/xt_sctp.c
@@
-151,7
+151,7
@@
match(const struct sk_buff *skb,
&& SCCHECK(((ntohs(sh->dest) >= info->dpts[0])
&& (ntohs(sh->dest) <= info->dpts[1])),
XT_SCTP_DEST_PORTS, info->flags, info->invflags)
- && SCCHECK(match_packet(skb, protoff,
+ && SCCHECK(match_packet(skb, protoff
+ sizeof (sctp_sctphdr_t)
,
info->chunkmap, info->chunk_match_type,
info->flag_info, info->flag_count,
hotdrop),