summaryrefslogtreecommitdiffstats
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2024-08-17 10:09:50 +0200
committerDamien Miller <djm@mindrot.org>2024-08-17 10:16:53 +0200
commit171427261d2079941eb1041079dbae875da37cbc (patch)
treef15f8b9a283f5ad20c657289ef6e7d753c9b18c9 /sshd.c
parentAdd compat functions for EVP_Digest{Sign,Verify}. (diff)
downloadopenssh-171427261d2079941eb1041079dbae875da37cbc.tar.xz
openssh-171427261d2079941eb1041079dbae875da37cbc.zip
upstream: fix swapping of source and destination addresses in some sshd
log messages OpenBSD-Commit-ID: 24d4cbb86325275df1f037545aa3b91456e52d25
Diffstat (limited to '')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index ed54fc6d6..7cce5ad3d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.609 2024/06/27 23:01:15 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.610 2024/08/17 08:09:50 djm Exp $ */
/*
* Copyright (c) 2000, 2001, 2002 Markus Friedl. All rights reserved.
* Copyright (c) 2002 Niels Provos. All rights reserved.
@@ -262,7 +262,7 @@ child_register(int pipefd, int sockfd)
} else {
laddr = get_local_ipaddr(sockfd);
raddr = get_peer_ipaddr(sockfd);
- xasprintf(&child->id, "connection from %s to %s", laddr, raddr);
+ xasprintf(&child->id, "connection from %s to %s", raddr, laddr);
}
free(laddr);
free(raddr);