summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-09-04 04:55:24 +0000
committerDamien Miller <djm@mindrot.org>2015-09-04 16:57:02 +1000
commit46152af8d27aa34d5d26ed1c371dc8aa142d4730 (patch)
tree088034b870a65ec5cdd0c99b32e8a7fd6e89d36b /sshconnect.c
parenta954cdb799a4d83c2d40fbf3e7b9f187fbfd72fc (diff)
upstream commit
correct function name in error messages Upstream-ID: 92fb2798617ad9561370897f4ab60adef2ff4c0e
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c
index f98171434..c9f88e035 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect.c,v 1.264 2015/09/04 03:57:38 djm Exp $ */ 1/* $OpenBSD: sshconnect.c,v 1.265 2015/09/04 04:55:24 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
@@ -432,7 +432,7 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop,
432 char ntop[NI_MAXHOST], strport[NI_MAXSERV]; 432 char ntop[NI_MAXHOST], strport[NI_MAXSERV];
433 struct addrinfo *ai; 433 struct addrinfo *ai;
434 434
435 debug2("ssh_connect: needpriv %d", needpriv); 435 debug2("%s: needpriv %d", __func__, needpriv);
436 436
437 for (attempt = 0; attempt < connection_attempts; attempt++) { 437 for (attempt = 0; attempt < connection_attempts; attempt++) {
438 if (attempt > 0) { 438 if (attempt > 0) {
@@ -451,7 +451,7 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop,
451 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, 451 if (getnameinfo(ai->ai_addr, ai->ai_addrlen,
452 ntop, sizeof(ntop), strport, sizeof(strport), 452 ntop, sizeof(ntop), strport, sizeof(strport),
453 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 453 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
454 error("ssh_connect: getnameinfo failed"); 454 error("%s: getnameinfo failed", __func__);
455 continue; 455 continue;
456 } 456 }
457 debug("Connecting to %.200s [%.100s] port %s.", 457 debug("Connecting to %.200s [%.100s] port %s.",