summaryrefslogtreecommitdiff
path: root/babeld/babel_main.c
diff options
context:
space:
mode:
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':