summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-12-22 07:24:12 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-12-22 07:24:12 +0000
commitc43dd904c046d28d5f1f1a4e3201044841141ebe (patch)
treef4e16698a3fb65b5dbe20e81b34fbfb065b39aad /usr.bin/ssh
parent9f1185bf45cd4213f99dcc494d8ba02fce4141bb (diff)
fix passing of wildcard forward bind addresses when connection
multiplexing is in use; patch from Sami Hartikainen via bz#2324; ok dtucker@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/mux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/mux.c b/usr.bin/ssh/mux.c
index 0e0728babc8..041b0650ca4 100644
--- a/usr.bin/ssh/mux.c
+++ b/usr.bin/ssh/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.48 2014/07/17 07:22:19 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.49 2014/12/22 07:24:11 djm Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
*
@@ -1670,7 +1670,8 @@ mux_client_forward(int fd, int cancel_flag, u_int ftype, struct Forward *fwd)
buffer_put_cstring(&m, fwd->listen_path);
} else {
buffer_put_cstring(&m,
- fwd->listen_host == NULL ? "" : fwd->listen_host);
+ fwd->listen_host == NULL ? "" :
+ (*fwd->listen_host == '\0' ? "*" : fwd->listen_host));
}
buffer_put_int(&m, fwd->listen_port);
if (fwd->connect_path != NULL) {