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

sys/.../icmp.c: fix prefix search
This commit is contained in:
Oleg Hahm 2015-05-16 19:42:39 +02:00
commit be707befbc

View File

@ -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;
}