bug #74921: check prefix_length, not length

This commit is contained in:
Daniel Elstner 2016-09-19 03:30:14 +02:00 committed by Dirk Ziegelmeier
parent 623f9ce046
commit 22907c7b27

View File

@ -491,7 +491,7 @@ nd6_input(struct pbuf *p, struct netif *inp)
prefix_opt = (struct prefix_option *)buffer;
if ((prefix_opt->flags & ND6_PREFIX_FLAG_ON_LINK) &&
(prefix_opt->length == 64) &&
(prefix_opt->prefix_length == 64) &&
!ip6_addr_islinklocal(&(prefix_opt->prefix))) {
/* Add to on-link prefix list. */
s8_t prefix;