From 68218d93ceb83aa8e85ef45f5f828d8452d10b81 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Mon, 22 Oct 2007 19:10:25 +0000 Subject: make sure that both the local and remote port are correct when parsing -L; Jan Pechanec (bz #1378) --- usr.bin/ssh/readconf.c | 4 ++-- 1 file 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 * Copyright (c) 1995 Tatu Ylonen , 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 && -- cgit v1.2.3