summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_main.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-31 10:39:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-31 10:39:54 -0700
commit2f30d8d38448c7ecde96304e3a94dbb5667b8dcc (patch)
tree99831498d4e7cc680592a54d3959894eba173067 /ospf6d/ospf6_main.c
parentf9ca20da1a62324d1ee9c11dd13c71f8986f4909 (diff)
parentd0cee3d3d7267f8f5c1d1ffd5c5fd8802a9db987 (diff)
downloadquagga-2f30d8d38448c7ecde96304e3a94dbb5667b8dcc.tar.bz2
quagga-2f30d8d38448c7ecde96304e3a94dbb5667b8dcc.tar.xz
Merge branch 'upstream' into islavista
Conflicts: ChangeLog NEWS bgpd/ChangeLog bgpd/bgp_attr.c bgpd/bgp_network.c bgpd/bgp_packet.c bgpd/bgp_vty.c bgpd/bgpd.c bgpd/bgpd.h lib/sockopt.c lib/sockopt.h lib/zebra.h mkinstalldirs zebra/rib.h zebra/rt_netlink.c
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;