[openssh-commits] [openssh] 01/01: fix variable name for IPv6 case in construct_utmpx
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Dec 23 15:27:44 EST 2014
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit c528c1b4af2f06712177b3de9b30705752f7cbcb
Author: Damien Miller <djm at google.com>
Date: Tue Dec 23 15:26:13 2014 +1100
fix variable name for IPv6 case in construct_utmpx
patch from writeonce AT midipix.org via bz#2296
---
loginrec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/loginrec.c b/loginrec.c
index 4219b9a..94ae81d 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -787,12 +787,12 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx)
/* this is just a 128-bit IPv6 address */
if (li->hostaddr.sa.sa_family == AF_INET6) {
sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
- memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
+ memcpy(utx->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) {
- ut->ut_addr_v6[0] = ut->ut_addr_v6[3];
- ut->ut_addr_v6[1] = 0;
- ut->ut_addr_v6[2] = 0;
- ut->ut_addr_v6[3] = 0;
+ utx->ut_addr_v6[0] = utx->ut_addr_v6[3];
+ utx->ut_addr_v6[1] = 0;
+ utx->ut_addr_v6[2] = 0;
+ utx->ut_addr_v6[3] = 0;
}
}
# endif
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list