diff options
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index b7e275556..4cbfe3689 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -97,7 +97,7 @@ auth_password(Authctxt *authctxt, const char *password) | |||
97 | if (authenticate(pw->pw_name, password, &reenter, | 97 | if (authenticate(pw->pw_name, password, &reenter, |
98 | &authmsg) == 0 && ok) { | 98 | &authmsg) == 0 && ok) { |
99 | char *msg; | 99 | char *msg; |
100 | char *host = | 100 | char *host = |
101 | (char *)get_canonical_hostname(options.use_dns); | 101 | (char *)get_canonical_hostname(options.use_dns); |
102 | 102 | ||
103 | authsuccess = 1; | 103 | authsuccess = 1; |
@@ -106,13 +106,13 @@ auth_password(Authctxt *authctxt, const char *password) | |||
106 | debug3("AIX/authenticate succeeded for user %s: %.100s", | 106 | debug3("AIX/authenticate succeeded for user %s: %.100s", |
107 | pw->pw_name, authmsg); | 107 | pw->pw_name, authmsg); |
108 | 108 | ||
109 | /* No pty yet, so just label the line as "ssh" */ | 109 | /* No pty yet, so just label the line as "ssh" */ |
110 | aix_setauthdb(authctxt->user); | 110 | aix_setauthdb(authctxt->user); |
111 | if (loginsuccess(authctxt->user, host, "ssh", | 111 | if (loginsuccess(authctxt->user, host, "ssh", |
112 | &msg) == 0) { | 112 | &msg) == 0) { |
113 | if (msg != NULL) { | 113 | if (msg != NULL) { |
114 | debug("%s: msg %s", __func__, msg); | 114 | debug("%s: msg %s", __func__, msg); |
115 | buffer_append(&loginmsg, msg, | 115 | buffer_append(&loginmsg, msg, |
116 | strlen(msg)); | 116 | strlen(msg)); |
117 | xfree(msg); | 117 | xfree(msg); |
118 | } | 118 | } |