Skip to content

Commit

Permalink
[NETFILTER]: xt_tcpudp: fix wrong struct in udp_checkentry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Bengtsson authored and David S. Miller committed Aug 31, 2007
1 parent dbaaa07 commit a289d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_tcpudp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a289d70

Please sign in to comment.