diff --git a/src/net/ipv6.c b/src/net/ipv6.c index 08e8e1000..c5f8d2d91 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -250,7 +250,7 @@ static int ipv6_check_options ( struct ipv6_header *iphdr, if ( option->type == IPV6_OPT_PAD1 ) { option = ( ( ( void * ) option ) + 1 ); } else { - option = ( ( ( void * ) option ) + option->len ); + option = ( ( ( void * ) option->value ) + option->len ); } } return 0;