diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-aix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index fa6a4ff7b..cf5d4b9a3 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -151,7 +151,7 @@ aix_valid_authentications(const char *user) | |||
151 | * returns 0. | 151 | * returns 0. |
152 | */ | 152 | */ |
153 | int | 153 | int |
154 | sys_auth_passwd(Authctxt *ctxt, const char *password, Buffer *loginmsg) | 154 | sys_auth_passwd(Authctxt *ctxt, const char *password) |
155 | { | 155 | { |
156 | char *authmsg = NULL, *msg, *name = ctxt->pw->pw_name; | 156 | char *authmsg = NULL, *msg, *name = ctxt->pw->pw_name; |
157 | int authsuccess = 0, expired, reenter, result; | 157 | int authsuccess = 0, expired, reenter, result; |
@@ -181,7 +181,7 @@ sys_auth_passwd(Authctxt *ctxt, const char *password, Buffer *loginmsg) | |||
181 | */ | 181 | */ |
182 | expired = passwdexpired(name, &msg); | 182 | expired = passwdexpired(name, &msg); |
183 | if (msg && *msg) { | 183 | if (msg && *msg) { |
184 | buffer_append(loginmsg, msg, strlen(msg)); | 184 | buffer_append(ctxt->loginmsg, msg, strlen(msg)); |
185 | aix_remove_embedded_newlines(msg); | 185 | aix_remove_embedded_newlines(msg); |
186 | } | 186 | } |
187 | debug3("AIX/passwdexpired returned %d msg %.100s", expired, msg); | 187 | debug3("AIX/passwdexpired returned %d msg %.100s", expired, msg); |