summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorKevin Adler <kadler@us.ibm.com>2018-12-12 22:12:45 -0600
committerDarren Tucker <dtucker@dtucker.net>2018-12-13 16:31:36 +1100
commita784fa8c7a7b084d63bae82ccfea902131bb45c5 (patch)
tree613b135a32bf1aae5bca8efca9e3aac9920917fc /auth.c
parent285310b897969a63ef224d39e7cc2b7316d86940 (diff)
Don't pass loginmsg by address now that it's an sshbuf*
In 120a1ec74, loginmsg was changed from the legacy Buffer type to struct sshbuf*, but it missed changing calls to sys_auth_allowed_user and sys_auth_record_login which passed loginmsg by address. Now that it's a pointer, just pass it directly. This only affects AIX, unless there are out of tree users.
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index 18d0857ff..d2a8cd65b 100644
--- a/auth.c
+++ b/auth.c
@@ -258,7 +258,7 @@ allowed_user(struct passwd * pw)
258 } 258 }
259 259
260#ifdef CUSTOM_SYS_AUTH_ALLOWED_USER 260#ifdef CUSTOM_SYS_AUTH_ALLOWED_USER
261 if (!sys_auth_allowed_user(pw, &loginmsg)) 261 if (!sys_auth_allowed_user(pw, loginmsg))
262 return 0; 262 return 0;
263#endif 263#endif
264 264
@@ -362,7 +362,7 @@ auth_log(Authctxt *authctxt, int authenticated, int partial,
362 if (authenticated) 362 if (authenticated)
363 sys_auth_record_login(authctxt->user, 363 sys_auth_record_login(authctxt->user,
364 auth_get_canonical_hostname(ssh, options.use_dns), "ssh", 364 auth_get_canonical_hostname(ssh, options.use_dns), "ssh",
365 &loginmsg); 365 loginmsg);
366# endif 366# endif
367#endif 367#endif
368#ifdef SSH_AUDIT_EVENTS 368#ifdef SSH_AUDIT_EVENTS