Skip to content

Commit

Permalink
upstream: fix swapping of source and destination addresses in some sshd
Browse files Browse the repository at this point in the history
log messages

OpenBSD-Commit-ID: 24d4cbb86325275df1f037545aa3b91456e52d25
  • Loading branch information
djmdjm committed Aug 17, 2024
1 parent 2a50a8f commit 1714272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshd.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1714272

Please sign in to comment.