patch-2.4.22 linux-2.4.22/net/ipv6/netfilter/ip6t_ah.c

Next file: linux-2.4.22/net/ipv6/netfilter/ip6t_esp.c
Previous file: linux-2.4.22/net/ipv6/netfilter/ip6t_LOG.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/ipv6/netfilter/ip6t_ah.c linux-2.4.22/net/ipv6/netfilter/ip6t_ah.c
@@ -134,7 +134,7 @@
        		return 0;
        }
 
-       ah=skb->data+ptr;
+       ah = (struct ahhdr *) (skb->data + ptr);
 
        DEBUGP("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen);
        DEBUGP("RES %04X ", ah->reserved);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)