Prevent oopses when logging IGMPv6 packets and similar. Index: linux-2.6.5/net/ipv6/netfilter/ip6t_LOG.c =================================================================== --- linux-2.6.5.orig/net/ipv6/netfilter/ip6t_LOG.c +++ linux-2.6.5/net/ipv6/netfilter/ip6t_LOG.c @@ -55,7 +55,7 @@ static u_int8_t ip6_nexthdr(u_int8_t cur repeatedly...with a large stick...no, an even LARGER stick...no, you're still not thinking big enough */ nexthdr = **hdrptr; - hdrlen = *hdrptr[1] * 4 + 8; + hdrlen = (*hdrptr)[1] * 4 + 8; *hdrptr = *hdrptr + hdrlen; break; /*stupid rfc2402 */ @@ -63,7 +63,7 @@ static u_int8_t ip6_nexthdr(u_int8_t cur case IPPROTO_ROUTING: case IPPROTO_HOPOPTS: nexthdr = **hdrptr; - hdrlen = *hdrptr[1] * 8 + 8; + hdrlen = (*hdrptr)[1] * 8 + 8; *hdrptr = *hdrptr + hdrlen; break; case IPPROTO_FRAGMENT: