Browse Source

Merge pull request #2997 from jfischer-phytec-iot/fix@icmp-prefix-search

sys/.../icmp.c: fix prefix search
dev/timer
Oleg Hahm 8 years ago
parent
commit
be707befbc
  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