diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2009-02-12 03:00:57 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2009-02-12 03:00:57 +0000 |
commit | b408bf990ab866324abffed8e86f5c4aebb6a2ea (patch) | |
tree | 483da191cd7e6ea927350e8fe96b55bddb347e6a /usr.bin/ssh/clientloop.c | |
parent | 922a2c5cb32a2e9e2113325186745a11e2d6fb89 (diff) |
support remote port forwarding with a zero listen port (-R0:...) to
dyamically allocate a listen port at runtime (this is actually
specified in rfc4254); bz#1003 ok markus@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index eeaba5274f5..23b2dea58bb 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.208 2009/01/22 10:02:34 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.209 2009/02/12 03:00:56 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -840,7 +840,7 @@ process_cmdline(void) } channel_request_rforward_cancel(cancel_host, cancel_port); } else { - if (!parse_forward(&fwd, s, dynamic ? 1 : 0)) { + if (!parse_forward(&fwd, s, dynamic, remote)) { logit("Bad forwarding specification."); goto out; } |