Commit e9f6716b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow zero-cost external routes.

parent b1b1062f
......@@ -139,7 +139,7 @@ main(int argc, char **argv)
SHIFTE();
myxroutes[nummyxroutes].cost = atoi(*arg);
if(myxroutes[nummyxroutes].cost < 0 ||
myxroutes[nummyxroutes].cost >= 128 * 256)
myxroutes[nummyxroutes].cost > INFINITY)
goto syntax;
nummyxroutes++;
} else if(strcmp(*arg, "-h") == 0) {
......
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