]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[NETFILTER]: xt_tcpudp: fix wrong struct in udp_checkentry
authorJesper Bengtsson <jesper.bengtsson@axis.com>
Fri, 31 Aug 2007 05:36:43 +0000 (22:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2007 05:36:43 +0000 (22:36 -0700)
It doesn't seem to have any effect on the x86 architecture but it does
have effect on the Axis CRIS architecture.

Signed-off-by: Jesper Bengtsson <jesper.bengtsson@axis.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_tcpudp.c

index ab7d845224fce9f7dad1b92f3d6a91d9c7c16411..223f9bded672dcfc3e3ea01e130b37e9fa15e53d 100644 (file)
@@ -188,7 +188,7 @@ udp_checkentry(const char *tablename,
               void *matchinfo,
               unsigned int hook_mask)
 {
-       const struct xt_tcp *udpinfo = matchinfo;
+       const struct xt_udp *udpinfo = matchinfo;
 
        /* Must specify no unknown invflags */
        return !(udpinfo->invflags & ~XT_UDP_INV_MASK);