[NETFILTER]: xt_sctp: fix mistake to pass a pointer where array is required
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 18 Oct 2007 12:12:21 +0000 (05:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 12:12:21 +0000 (05:12 -0700)
commit009e8c965fd72a78636b9a96c7015109c5c70176
tree9ebf33292c45a3b33985400e0fec13d6de4a9217
parent1b83336bb9fa4f110b5b0a4378a82cd5f0fd0ac8
[NETFILTER]: xt_sctp: fix mistake to pass a pointer where array is required

Macros like SCTP_CHUNKMAP_XXX(chukmap) require chukmap to be an array,
but match_packet() passes a pointer to these macros. Also remove the
ELEMCOUNT macro and fix a bug in SCTP_CHUNKMAP_COPY.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/xt_sctp.h
net/netfilter/xt_sctp.c