diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2005-04-06 12:26:07 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2005-04-06 12:26:07 +0000 |
commit | bbfd9e5c1888b8d85ad459499ae2b1c8d5c2a43e (patch) | |
tree | b63db8061cbd6b370c10ecb997f89b80311a63fa | |
parent | c25b358906eabcbd49533a41276325711e82b54c (diff) |
Fix debug call for port forwards; patch from pete at seebeyond.com, ok djm@
-rw-r--r-- | usr.bin/ssh/ssh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index b79efe3532f..2f14778a393 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.234 2005/03/10 22:01:06 deraadt Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.235 2005/04/06 12:26:06 dtucker Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -865,6 +865,8 @@ ssh_init_forwarding(void) for (i = 0; i < options.num_remote_forwards; i++) { debug("Remote connections from %.200s:%d forwarded to " "local address %.200s:%d", + (options.remote_forwards[i].listen_host == NULL) ? + (options.gateway_ports ? "*" : "LOCALHOST") : options.remote_forwards[i].listen_host, options.remote_forwards[i].listen_port, options.remote_forwards[i].connect_host, |