From 5a4456c6a592143a0a25ad925279eaf9ff620cc4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 26 Oct 2007 14:27:22 +1000 Subject: - 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) --- ChangeLog | 6 +++++- readconf.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c199a0ed4..d23839172 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,10 @@ removes an unused variable correctly counts line number "looks ok" ray@ markus@ + - 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) 20070927 - (dtucker) [configure.ac atomicio.c] Fall back to including if @@ -3308,4 +3312,4 @@ OpenServer 6 and add osr5bigcrypt support so when someone migrates passwords between UnixWare and OpenServer they will still work. OK dtucker@ -$Id: ChangeLog,v 1.4768 2007/10/26 04:27:02 djm Exp $ +$Id: ChangeLog,v 1.4769 2007/10/26 04:27:22 djm Exp $ diff --git a/readconf.c b/readconf.c index d57d4551d..df058d35a 100644 --- a/readconf.c +++ b/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 * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1255,7 +1255,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 && -- cgit v1.2.3