summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-03-08 01:58:43 +0100
committerDarren Tucker <dtucker@zip.com.au>2016-03-08 01:58:43 +0100
commit885fb2a44ff694f01e4f6470f803629e11f62961 (patch)
tree0ee65c628023beb19745239a3a6551662a3a92a1 /auth.c
parentupstream commit (diff)
downloadopenssh-885fb2a44ff694f01e4f6470f803629e11f62961.tar.xz
openssh-885fb2a44ff694f01e4f6470f803629e11f62961.zip
auth_get_canonical_hostname in portable code.
"refactor canohost.c" replaced get_canonical_hostname, this makes the same change to some portable-specific code.
Diffstat (limited to '')
-rw-r--r--auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/auth.c b/auth.c
index aae0593e7..55629b320 100644
--- a/auth.c
+++ b/auth.c
@@ -318,11 +318,12 @@ auth_log(Authctxt *authctxt, int authenticated, int partial,
strncmp(method, "keyboard-interactive", 20) == 0 ||
strcmp(method, "challenge-response") == 0))
record_failed_login(authctxt->user,
- get_canonical_hostname(options.use_dns), "ssh");
+ auth_get_canonical_hostname(ssh, options.use_dns), "ssh");
# ifdef WITH_AIXAUTHENTICATE
if (authenticated)
sys_auth_record_login(authctxt->user,
- get_canonical_hostname(options.use_dns), "ssh", &loginmsg);
+ auth_get_canonical_hostname(ssh, options.use_dns), "ssh",
+ &loginmsg);
# endif
#endif
#ifdef SSH_AUDIT_EVENTS
@@ -653,7 +654,7 @@ getpwnamallow(const char *user)
user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));
#ifdef CUSTOM_FAILED_LOGIN
record_failed_login(user,
- get_canonical_hostname(options.use_dns), "ssh");
+ auth_get_canonical_hostname(ssh, options.use_dns), "ssh");
#endif
#ifdef SSH_AUDIT_EVENTS
audit_event(SSH_INVALID_USER);