summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_main.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-20 12:12:59 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-20 12:12:59 -0700
commit560f4b148ec5873f709164869120e32ca33ae660 (patch)
tree38ed19df2451876e25a85e783aa751c8c32a231c /ospf6d/ospf6_main.c
parent1a20eca3537abb0925dbd777224c6abf5f0e6833 (diff)
parent11f4f0e55dbd48a4dd56e96202731d6679041594 (diff)
downloadquagga-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.c3
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;