summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/loginrec.c b/loginrec.c
index 9a427dec4..5f2a47797 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -467,7 +467,7 @@ login_write(struct logininfo *li)
467#ifdef CUSTOM_SYS_AUTH_RECORD_LOGIN 467#ifdef CUSTOM_SYS_AUTH_RECORD_LOGIN
468 if (li->type == LTYPE_LOGIN && 468 if (li->type == LTYPE_LOGIN &&
469 !sys_auth_record_login(li->username,li->hostname,li->line, 469 !sys_auth_record_login(li->username,li->hostname,li->line,
470 &loginmsg)) 470 loginmsg))
471 logit("Writing login record failed for %s", li->username); 471 logit("Writing login record failed for %s", li->username);
472#endif 472#endif
473#ifdef SSH_AUDIT_EVENTS 473#ifdef SSH_AUDIT_EVENTS
@@ -1653,7 +1653,7 @@ utmpx_get_entry(struct logininfo *li)
1653 */ 1653 */
1654 1654
1655void 1655void
1656record_failed_login(const char *username, const char *hostname, 1656record_failed_login(struct ssh *ssh, const char *username, const char *hostname,
1657 const char *ttyn) 1657 const char *ttyn)
1658{ 1658{
1659 int fd; 1659 int fd;
@@ -1696,8 +1696,8 @@ record_failed_login(const char *username, const char *hostname,
1696 /* strncpy because we don't necessarily want nul termination */ 1696 /* strncpy because we don't necessarily want nul termination */
1697 strncpy(ut.ut_host, hostname, sizeof(ut.ut_host)); 1697 strncpy(ut.ut_host, hostname, sizeof(ut.ut_host));
1698 1698
1699 if (packet_connection_is_on_socket() && 1699 if (ssh_packet_connection_is_on_socket(ssh) &&
1700 getpeername(packet_get_connection_in(), 1700 getpeername(ssh_packet_get_connection_in(ssh),
1701 (struct sockaddr *)&from, &fromlen) == 0) { 1701 (struct sockaddr *)&from, &fromlen) == 0) {
1702 ipv64_normalise_mapped(&from, &fromlen); 1702 ipv64_normalise_mapped(&from, &fromlen);
1703 if (from.ss_family == AF_INET) { 1703 if (from.ss_family == AF_INET) {