diff --git a/loginrec.c b/loginrec.c index 7b1818b86..4afe136f4 100644 --- a/loginrec.c +++ b/loginrec.c @@ -1015,7 +1015,7 @@ utmpx_perform_login(struct logininfo *li) return (0); } # else - if (!utmpx_write_direct(li, &ut)) { + if (!utmpx_write_direct(li, &utx)) { logit("%s: utmp_write_direct() failed", __func__); return (0); }