summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginrec.c b/loginrec.c
index 08fc73758..5f2a47797 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -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) {