diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-03-31 21:51:54 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-03-31 21:51:54 +1000 |
commit | 73ba43798a3e81149f65a03d51f23bf9fa928011 (patch) | |
tree | 9c4b7ba2cad41620ca1994b78e7b4c8cd4b565b3 /ssh.c | |
parent | f3bb4341777eb44df1ca7db0d574f849821a186c (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |