diff options
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loginrec.c b/loginrec.c index e5289deb8..ea058fd6f 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -778,6 +778,9 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx) | |||
778 | strncpy(utx->ut_host, li->hostname, | 778 | strncpy(utx->ut_host, li->hostname, |
779 | MIN_SIZEOF(utx->ut_host, li->hostname)); | 779 | MIN_SIZEOF(utx->ut_host, li->hostname)); |
780 | # endif | 780 | # endif |
781 | # ifdef HAVE_SS_IN_UTMPX | ||
782 | utx->ut_ss = li->hostaddr.sa_storage; | ||
783 | # endif | ||
781 | # ifdef HAVE_ADDR_IN_UTMPX | 784 | # ifdef HAVE_ADDR_IN_UTMPX |
782 | /* this is just a 32-bit IP address */ | 785 | /* this is just a 32-bit IP address */ |
783 | if (li->hostaddr.sa.sa_family == AF_INET) | 786 | if (li->hostaddr.sa.sa_family == AF_INET) |