diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2024-08-17 08:09:51 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2024-08-17 08:09:51 +0000 |
commit | fa180a9ff1e6af2dc67407e8a27069fe47b44a87 (patch) | |
tree | c67a8413ec318b430b7fbe67695973ca85c01d4c /usr.bin/ssh/sshd.c | |
parent | 9d360da863882ee191c82d57b06a14465c2f5c20 (diff) |
fix swapping of source and destination addresses in some sshd log messages
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 64d0d0d752e..e2037b2bae9 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/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. @@ -241,7 +241,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); |