diff options
author | 2009-02-12 03:00:56 +0000 | |
---|---|---|
committer | 2009-02-12 03:00:56 +0000 | |
commit | 4edc3fd2c0c4499a2e3c11aadcdd1240a3f9ce9c (patch) | |
tree | a3473e75393306cad3fb05e44a4eb66b768d37f9 /usr.bin/ssh/clientloop.c | |
parent | revert pf.c r1.629 (which moved to this file) which was causing (diff) | |
download | wireguard-openbsd-4edc3fd2c0c4499a2e3c11aadcdd1240a3f9ce9c.tar.xz wireguard-openbsd-4edc3fd2c0c4499a2e3c11aadcdd1240a3f9ce9c.zip |
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; } |