summaryrefslogtreecommitdiffstats
path: root/src/net/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ipv6.c')
-rw-r--r--src/net/ipv6.c2
1 files changed, 1 insertions, 1 deletions
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;