diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-20 12:12:59 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-20 12:12:59 -0700 |
commit | 560f4b148ec5873f709164869120e32ca33ae660 (patch) | |
tree | 38ed19df2451876e25a85e783aa751c8c32a231c /ospf6d/ospf6_main.c | |
parent | 1a20eca3537abb0925dbd777224c6abf5f0e6833 (diff) | |
parent | 11f4f0e55dbd48a4dd56e96202731d6679041594 (diff) | |
download | quagga-560f4b148ec5873f709164869120e32ca33ae660.tar.bz2 quagga-560f4b148ec5873f709164869120e32ca33ae660.tar.xz |
Merge branch 'master' of /home/shemminger/git/quagga into upstream
Diffstat (limited to 'ospf6d/ospf6_main.c')
-rw-r--r-- | ospf6d/ospf6_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 8380bc89..680f4b7f 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -227,7 +227,8 @@ main (int argc, char *argv[], char *envp[]) break; } vty_port = atoi (optarg); - vty_port = (vty_port ? vty_port : OSPF6_VTY_PORT); + if (vty_port <= 0 || vty_port > 0xffff) + vty_port = OSPF6_VTY_PORT; break; case 'u': ospf6d_privs.user = optarg; |