mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
Some AIX fixes; report from Michael Felt
This commit is contained in:
parent
2f4766ceef
commit
e36a5f61b0
@ -204,7 +204,7 @@ sys_auth_passwd(struct ssh *ssh, const char *password)
|
||||
*/
|
||||
expired = passwdexpired(name, &msg);
|
||||
if (msg && *msg) {
|
||||
if ((r = sshbuf_put(ctx->loginmsg,
|
||||
if ((r = sshbuf_put(ctxt->loginmsg,
|
||||
msg, strlen(msg))) != 0)
|
||||
fatal("%s: buffer error: %s",
|
||||
__func__, ssh_err(r));
|
||||
@ -241,7 +241,7 @@ int
|
||||
sys_auth_allowed_user(struct passwd *pw, struct sshbuf *loginmsg)
|
||||
{
|
||||
char *msg = NULL;
|
||||
int result, permitted = 0;
|
||||
int r, result, permitted = 0;
|
||||
struct stat st;
|
||||
|
||||
/*
|
||||
@ -267,6 +267,7 @@ sys_auth_allowed_user(struct passwd *pw, struct sshbuf *loginmsg)
|
||||
else if (msg != NULL) {
|
||||
if ((r = sshbuf_put(loginmsg, msg, strlen(msg))) != 0)
|
||||
fatal("%s: buffer error: %s", __func__, ssh_err(r));
|
||||
}
|
||||
if (msg == NULL)
|
||||
msg = xstrdup("(none)");
|
||||
aix_remove_embedded_newlines(msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user