summaryrefslogtreecommitdiff
path: root/babeld/babel_main.c
diff options
context:
space:
mode:
authorJuliusz Chroboczek <jch@pps.jussieu.fr>2012-02-07 05:43:36 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:53 +0100
commit38846de1fd7fa9005933564de28360fb9bdf02bb (patch)
treeec52e9591640b5edbb3b868d487191ec9e324199 /babeld/babel_main.c
parente19ed8c4516621be74b9a28c887185fc66b67430 (diff)
babeld: Error handling and tweaks for babeld commands.
Diffstat (limited to 'babeld/babel_main.c')
-rw-r--r--babeld/babel_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index 951da7d1..a75171e0 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -227,8 +227,7 @@ babel_init(int argc, char **argv)
break;
case 'P':
babel_vty_port = atoi (optarg);
- if (babel_vty_port < 0 || babel_vty_port > 0xffff
- || (babel_vty_port == 0 && optarg[0] != '0'/*atoi error*/))
+ if (babel_vty_port <= 0 || babel_vty_port > 0xffff)
babel_vty_port = BABEL_VTY_PORT;
break;
case 'u':