aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index b761dbed8cec..d4acd283111b 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -256,7 +256,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
256 break; 256 break;
257 case ND_OPT_PREFIX_INFO: 257 case ND_OPT_PREFIX_INFO:
258 ndopts->nd_opts_pi_end = nd_opt; 258 ndopts->nd_opts_pi_end = nd_opt;
259 if (ndopts->nd_opt_array[nd_opt->nd_opt_type] == 0) 259 if (!ndopts->nd_opt_array[nd_opt->nd_opt_type])
260 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; 260 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt;
261 break; 261 break;
262#ifdef CONFIG_IPV6_ROUTE_INFO 262#ifdef CONFIG_IPV6_ROUTE_INFO