]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
fix utmpx ifdef
authorChristoph Ostarek <christoph@zededa.com>
Wed, 3 Jul 2024 10:46:59 +0000 (12:46 +0200)
committerDamien Miller <djm@mindrot.org>
Wed, 25 Sep 2024 01:33:39 +0000 (11:33 +1000)
02e16ad95fb1f56ab004b01a10aab89f7103c55d did a copy-paste for
utmpx, but forgot to change the ifdef appropriately

loginrec.c

index 7460bb2c0329ad1ffea4e03a66b9f3ec6ef0d07d..45f13dee8b1fc2e3d9099d6ae50bd124662f9e90 100644 (file)
@@ -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);