summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Ostarek <christoph@zededa.com>2024-07-03 12:46:59 +0200
committerDamien Miller <djm@mindrot.org>2024-09-24 04:09:48 +0200
commit0f5d19e6fe4b58a89e6dc8c71a2aae30365d193e (patch)
tree275aa08326d4b4d075234143c6246f0f031d4244
parentupstream: remove some unused defines; ok djm@ (diff)
downloadopenssh-0f5d19e6fe4b58a89e6dc8c71a2aae30365d193e.tar.xz
openssh-0f5d19e6fe4b58a89e6dc8c71a2aae30365d193e.zip
fix utmpx ifdef
02e16ad95fb1f56ab004b01a10aab89f7103c55d did a copy-paste for utmpx, but forgot to change the ifdef appropriately
-rw-r--r--loginrec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index 7460bb2c0..45f13dee8 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -723,7 +723,7 @@ set_utmpx_time(struct logininfo *li, struct utmpx *utx)
void
construct_utmpx(struct logininfo *li, struct utmpx *utx)
{
-# ifdef HAVE_ADDR_V6_IN_UTMP
+# ifdef HAVE_ADDR_V6_IN_UTMPX
struct sockaddr_in6 *sa6;
# endif
memset(utx, '\0', sizeof(*utx));
@@ -769,7 +769,7 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx)
if (li->hostaddr.sa.sa_family == AF_INET)
utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr;
# endif
-# ifdef HAVE_ADDR_V6_IN_UTMP
+# ifdef HAVE_ADDR_V6_IN_UTMPX
/* this is just a 128-bit IPv6 address */
if (li->hostaddr.sa.sa_family == AF_INET6) {
sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);