diff options
author | Damien Miller <djm@mindrot.org> | 2019-01-20 09:58:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-20 09:58:45 +1100 |
commit | 08f66d9f17e12c1140d1f1cf5c4dce67e915d3cc (patch) | |
tree | 70cb70df407096b8ff095d683b4f202f5e18653e /loginrec.c | |
parent | c327813ea1d740e3e367109c17873815aba1328e (diff) |
remove vestiges of old packet API from loginrec.c
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1653,7 +1653,7 @@ utmpx_get_entry(struct logininfo *li) */ void -record_failed_login(const char *username, const char *hostname, +record_failed_login(struct ssh *ssh, const char *username, const char *hostname, const char *ttyn) { int fd; @@ -1696,8 +1696,8 @@ record_failed_login(const char *username, const char *hostname, /* strncpy because we don't necessarily want nul termination */ strncpy(ut.ut_host, hostname, sizeof(ut.ut_host)); - if (packet_connection_is_on_socket() && - getpeername(packet_get_connection_in(), + if (ssh_packet_connection_is_on_socket(ssh) && + getpeername(ssh_packet_get_connection_in(ssh), (struct sockaddr *)&from, &fromlen) == 0) { ipv64_normalise_mapped(&from, &fromlen); if (from.ss_family == AF_INET) { |