commit | 38846de1fd7fa9005933564de28360fb9bdf02bb | [log] [tgz] |
---|---|---|
author | Juliusz Chroboczek <jch@pps.jussieu.fr> | Tue Feb 07 05:43:36 2012 +0100 |
committer | Paul Jakma <paul@quagga.net> | Sun Mar 25 17:06:53 2012 +0100 |
tree | ec52e9591640b5edbb3b868d487191ec9e324199 | |
parent | e19ed8c4516621be74b9a28c887185fc66b67430 [diff] [blame] |
babeld: Error handling and tweaks for babeld commands.
diff --git a/babeld/babel_main.c b/babeld/babel_main.c index 951da7d..a75171e 100644 --- a/babeld/babel_main.c +++ b/babeld/babel_main.c
@@ -227,8 +227,7 @@ 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':