summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-03-31 21:51:54 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-03-31 21:51:54 +1000
commit73ba43798a3e81149f65a03d51f23bf9fa928011 (patch)
tree9c4b7ba2cad41620ca1994b78e7b4c8cd4b565b3 /ssh.c
parentf3bb4341777eb44df1ca7db0d574f849821a186c (diff)
- (dtucker) [ssh.c] Prevent null pointer deref in port forwarding debug
message on some platforms. Patch from pete at seebeyond.com via djm.
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh.c b/ssh.c
index 1f025c784..703cb8bd3 100644
--- a/ssh.c
+++ b/ssh.c
@@ -876,6 +876,8 @@ ssh_init_forwarding(void)
876 for (i = 0; i < options.num_remote_forwards; i++) { 876 for (i = 0; i < options.num_remote_forwards; i++) {
877 debug("Remote connections from %.200s:%d forwarded to " 877 debug("Remote connections from %.200s:%d forwarded to "
878 "local address %.200s:%d", 878 "local address %.200s:%d",
879 (options.remote_forwards[i].listen_host == NULL) ?
880 (options.gateway_ports ? "*" : "LOCALHOST") :
879 options.remote_forwards[i].listen_host, 881 options.remote_forwards[i].listen_host,
880 options.remote_forwards[i].listen_port, 882 options.remote_forwards[i].listen_port,
881 options.remote_forwards[i].connect_host, 883 options.remote_forwards[i].connect_host,