diff options
-rw-r--r-- | sshd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.446 2015/04/10 05:16:50 dtucker Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.447 2015/04/15 23:23:25 dtucker 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 |
@@ -1455,7 +1455,7 @@ main(int ac, char **av) | |||
1455 | int sock_in = -1, sock_out = -1, newsock = -1; | 1455 | int sock_in = -1, sock_out = -1, newsock = -1; |
1456 | const char *remote_ip; | 1456 | const char *remote_ip; |
1457 | int remote_port; | 1457 | int remote_port; |
1458 | char *fp, *line, *logfile = NULL; | 1458 | char *fp, *line, *laddr, *logfile = NULL; |
1459 | int config_s[2] = { -1 , -1 }; | 1459 | int config_s[2] = { -1 , -1 }; |
1460 | u_int n; | 1460 | u_int n; |
1461 | u_int64_t ibytes, obytes; | 1461 | u_int64_t ibytes, obytes; |
@@ -2130,9 +2130,10 @@ main(int ac, char **av) | |||
2130 | #endif | 2130 | #endif |
2131 | 2131 | ||
2132 | /* Log the connection. */ | 2132 | /* Log the connection. */ |
2133 | laddr = get_local_ipaddr(sock_in); | ||
2133 | verbose("Connection from %s port %d on %s port %d", | 2134 | verbose("Connection from %s port %d on %s port %d", |
2134 | remote_ip, remote_port, | 2135 | remote_ip, remote_port, laddr, get_local_port()); |
2135 | get_local_ipaddr(sock_in), get_local_port()); | 2136 | free(laddr); |
2136 | 2137 | ||
2137 | /* | 2138 | /* |
2138 | * We don't want to listen forever unless the other side | 2139 | * We don't want to listen forever unless the other side |