Browse Source

sys/.../icmp.c: fix prefix search

Replace equal operator inside ndp_prefix_info_search by not equal.
Otherwise, the existing prefix can not be found.
dev/timer
Johann Fischer 8 years ago committed by Johann F
parent
commit
41cc10520d
  1. 2
      sys/net/network_layer/sixlowpan/icmp.c

2
sys/net/network_layer/sixlowpan/icmp.c

@ -1846,7 +1846,7 @@ ndp_prefix_info_t *ndp_prefix_info_search(int if_id, const ipv6_addr_t *addr,
}
}
if (prefix->prefix_len == 0 && match > best_match) {
if ((prefix->prefix_len != 0) && (match > best_match)) {
tmp = prefix;
best_match = match;
}

Loading…
Cancel
Save