Commit 5a3400fc authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix incorrect assertion.

Reported by Thomas McLure.
parent a5c5ad12
...@@ -1009,7 +1009,7 @@ flushupdates(struct interface *ifp) ...@@ -1009,7 +1009,7 @@ flushupdates(struct interface *ifp)
channels[0] = IF_CHANNEL_INTERFERING; channels[0] = IF_CHANNEL_INTERFERING;
else { else {
assert(route_ifp->channel > 0 && assert(route_ifp->channel > 0 &&
route_ifp->channel <= 254); route_ifp->channel <= 255);
channels[0] = route_ifp->channel; channels[0] = route_ifp->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