summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-11-21 23:48:55 +1100
committerDamien Miller <djm@mindrot.org>2003-11-21 23:48:55 +1100
commita8e06cef35c205e1aa562513c6d034a10c8c9a6d (patch)
treecf8bdb4466f553088c020b9179cabd6eaf196075 /auth-passwd.c
parent8c5e91c03fdd2693f0635f8b2a9904bffc94ce16 (diff)
- djm@cvs.openbsd.org 2003/11/21 11:57:03
[everything] unexpand and delete whitespace at EOL; ok markus@ (done locally and RCS IDs synced)
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c8
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 }