summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index 3ad106f72..1220309d7 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.495 2017/10/25 00:17:08 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.496 2017/10/25 00:19:47 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1404,7 +1404,7 @@ main(int ac, char **av)
1404 extern int optind; 1404 extern int optind;
1405 int r, opt, on = 1, already_daemon, remote_port; 1405 int r, opt, on = 1, already_daemon, remote_port;
1406 int sock_in = -1, sock_out = -1, newsock = -1; 1406 int sock_in = -1, sock_out = -1, newsock = -1;
1407 const char *remote_ip; 1407 const char *remote_ip, *rdomain;
1408 char *fp, *line, *laddr, *logfile = NULL; 1408 char *fp, *line, *laddr, *logfile = NULL;
1409 int config_s[2] = { -1 , -1 }; 1409 int config_s[2] = { -1 , -1 };
1410 u_int i, j; 1410 u_int i, j;
@@ -2022,10 +2022,14 @@ main(int ac, char **av)
2022 audit_connection_from(remote_ip, remote_port); 2022 audit_connection_from(remote_ip, remote_port);
2023#endif 2023#endif
2024 2024
2025 rdomain = ssh_packet_rdomain_in(ssh);
2026
2025 /* Log the connection. */ 2027 /* Log the connection. */
2026 laddr = get_local_ipaddr(sock_in); 2028 laddr = get_local_ipaddr(sock_in);
2027 verbose("Connection from %s port %d on %s port %d", 2029 verbose("Connection from %s port %d on %s port %d%s%s",
2028 remote_ip, remote_port, laddr, ssh_local_port(ssh)); 2030 remote_ip, remote_port, laddr, ssh_local_port(ssh),
2031 rdomain == NULL ? "" : " rdomain ",
2032 rdomain == NULL ? "" : rdomain);
2029 free(laddr); 2033 free(laddr);
2030 2034
2031 /* 2035 /*