aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-07-22 22:30:27 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-07-22 22:30:27 +0200
commitc70135d8ed31d133f2fb085bee01db8ad26d7fec (patch)
tree6b1edab6b87bd4c0d5b4aeca747232e524d28b36 /options.c
parentAdded win/build_exe.py script, which is similar to (diff)
parentFixed client hang when server don't PUSH (aka the NO_SOUP_FOR_YOU patch) (diff)
downloadopenvpn-c70135d8ed31d133f2fb085bee01db8ad26d7fec.tar.xz
Merge branch 'bugfix2.1' into beta2.2
Conflicts: openvpn.8 - New option descriped (--register-dns) Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index ce53ad5..ca46ff4 100644
--- a/options.c
+++ b/options.c
@@ -4252,7 +4252,7 @@ add_option (struct options *options,
VERIFY_PERMISSION (OPT_P_GENERAL|OPT_P_CONNECTION);
port = atoi (p[1]);
- if (!legal_ipv4_port (port))
+ if ((port != 0) && !legal_ipv4_port (port))
{
msg (msglevel, "Bad local port number: %s", p[1]);
goto err;