diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-06-20 15:55:34 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-06-20 15:55:34 +1000 |
commit | aa37768f17d01974b6bfa481e5e83841b6c76f86 (patch) | |
tree | f1466e489ba147875ae9e455441d84aed2363db8 | |
parent | 009891afc8df37bc2101e15d1e0b6433cfb90549 (diff) |
get_remote_name_or_ip inside LOGIN_NEEDS_UTMPX
Apply the same get_remote_name_or_ip -> session_get_remote_name_or_ip
change as commit 95767262 to the code inside #ifdef LOGIN_NEEDS_UTMPX.
Fixes build on AIX.
-rw-r--r-- | session.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -769,6 +769,7 @@ do_exec_pty(Session *s, const char *command) | |||
769 | static void | 769 | static void |
770 | do_pre_login(Session *s) | 770 | do_pre_login(Session *s) |
771 | { | 771 | { |
772 | struct ssh *ssh = active_state; /* XXX */ | ||
772 | socklen_t fromlen; | 773 | socklen_t fromlen; |
773 | struct sockaddr_storage from; | 774 | struct sockaddr_storage from; |
774 | pid_t pid = getpid(); | 775 | pid_t pid = getpid(); |
@@ -788,7 +789,7 @@ do_pre_login(Session *s) | |||
788 | } | 789 | } |
789 | 790 | ||
790 | record_utmp_only(pid, s->tty, s->pw->pw_name, | 791 | record_utmp_only(pid, s->tty, s->pw->pw_name, |
791 | get_remote_name_or_ip(utmp_len, options.use_dns), | 792 | session_get_remote_name_or_ip(ssh, utmp_len, options.use_dns), |
792 | (struct sockaddr *)&from, fromlen); | 793 | (struct sockaddr *)&from, fromlen); |
793 | } | 794 | } |
794 | #endif | 795 | #endif |