Commit fb7c4b3c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix incorrect assertion.

Reported by Thomas McLure.
parent 5f40b621
...@@ -1009,7 +1009,7 @@ flushupdates(struct network *net) ...@@ -1009,7 +1009,7 @@ flushupdates(struct network *net)
channels[0] = NET_CHANNEL_INTERFERING; channels[0] = NET_CHANNEL_INTERFERING;
else { else {
assert(route_net->channel > 0 && assert(route_net->channel > 0 &&
route_net->channel <= 254); route_net->channel <= 255);
channels[0] = route_net->channel; channels[0] = route_net->channel;
} }
memcpy(channels + 1, route->channels, DIVERSITY_HOPS - 1); memcpy(channels + 1, route->channels, DIVERSITY_HOPS - 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment