diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2007-10-22 19:10:25 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2007-10-22 19:10:25 +0000 |
commit | 68218d93ceb83aa8e85ef45f5f828d8452d10b81 (patch) | |
tree | 64ea4281a97a87b1f370a97427b845d72466a1d1 /usr.bin/ssh | |
parent | 6cd9e5f0e1f988778f94662ea095aa360a86dc14 (diff) |
make sure that both the local and remote port are correct when
parsing -L; Jan Pechanec (bz #1378)
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/readconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c index b178388ba36..bbda5c80c58 100644 --- a/usr.bin/ssh/readconf.c +++ b/usr.bin/ssh/readconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.c,v 1.162 2007/03/20 03:56:12 tedu Exp $ */ +/* $OpenBSD: readconf.c,v 1.163 2007/10/22 19:10:24 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1250,7 +1250,7 @@ parse_forward(Forward *fwd, const char *fwdspec) xfree(p); - if (fwd->listen_port == 0 && fwd->connect_port == 0) + if (fwd->listen_port == 0 || fwd->connect_port == 0) goto fail_free; if (fwd->connect_host != NULL && |