summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-01-11 17:18:56 +1100
committerDamien Miller <djm@mindrot.org>2011-01-11 17:18:56 +1100
commitb73b6fd916a842dbcf800c13434a6abb6cd06ade (patch)
treeecb79e5c1fc8cd17515c6d739dc55f988ed203b6 /clientloop.c
parent81ad4b1fc0f3d2004a0e0004607ebd9a3664034b (diff)
- djm@cvs.openbsd.org 2011/01/08 10:51:51
[clientloop.c] use host and not options.hostname, as the latter may have unescaped substitution characters
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index 184671d6c..7712f69be 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.227 2011/01/06 22:23:02 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.228 2011/01/08 10:51:51 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -544,7 +544,7 @@ static void
544server_alive_check(void) 544server_alive_check(void)
545{ 545{
546 if (packet_inc_alive_timeouts() > options.server_alive_count_max) { 546 if (packet_inc_alive_timeouts() > options.server_alive_count_max) {
547 logit("Timeout, server %s not responding.", options.hostname); 547 logit("Timeout, server %s not responding.", host);
548 cleanup_exit(255); 548 cleanup_exit(255);
549 } 549 }
550 packet_start(SSH2_MSG_GLOBAL_REQUEST); 550 packet_start(SSH2_MSG_GLOBAL_REQUEST);