Commit f8aee02d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow zero-cost xroutes.

parent 605952e5
......@@ -138,7 +138,7 @@ main(int argc, char **argv)
goto syntax;
SHIFTE();
myxroutes[nummyxroutes].cost = atoi(*arg);
if(myxroutes[nummyxroutes].cost <= 0 ||
if(myxroutes[nummyxroutes].cost < 0 ||
myxroutes[nummyxroutes].cost >= 128 * 256)
goto syntax;
nummyxroutes++;
......
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