summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-10-26 14:27:22 +1000
committerDamien Miller <djm@mindrot.org>2007-10-26 14:27:22 +1000
commit5a4456c6a592143a0a25ad925279eaf9ff620cc4 (patch)
tree14fa0c9c865271c2ac117a0904ecc1f153f86977 /readconf.c
parent3dddab3b951cc7d28218d432f53fcbd499b0bc71 (diff)
- markus@cvs.openbsd.org 2007/10/22 19:10:24
[readconf.c] make sure that both the local and remote port are correct when parsing -L; Jan Pechanec (bz #1378)
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index d57d4551d..df058d35a 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.162 2007/03/20 03:56:12 tedu Exp $ */ 1/* $OpenBSD: readconf.c,v 1.163 2007/10/22 19:10:24 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1255,7 +1255,7 @@ parse_forward(Forward *fwd, const char *fwdspec)
1255 1255
1256 xfree(p); 1256 xfree(p);
1257 1257
1258 if (fwd->listen_port == 0 && fwd->connect_port == 0) 1258 if (fwd->listen_port == 0 || fwd->connect_port == 0)
1259 goto fail_free; 1259 goto fail_free;
1260 1260
1261 if (fwd->connect_host != NULL && 1261 if (fwd->connect_host != NULL &&