Skip to content
Snippets Groups Projects
Commit be707bef authored by Oleg Hahm's avatar Oleg Hahm
Browse files

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

sys/.../icmp.c: fix prefix search
parents 5f1d6f4f 41cc1052
No related branches found
No related tags found
No related merge requests found
...@@ -1846,7 +1846,7 @@ ndp_prefix_info_t *ndp_prefix_info_search(int if_id, const ipv6_addr_t *addr, ...@@ -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; tmp = prefix;
best_match = match; best_match = match;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment