summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org@openbsd.org <djm@openbsd.org@openbsd.org>2017-10-27 00:18:41 +0000
committerDamien Miller <djm@mindrot.org>2017-10-31 09:08:50 +1100
commitb77c29a07f5a02c7c1998701c73d92bde7ae1608 (patch)
treeb272fd301af83298935dc76b5051caa97195d085 /sshd.c
parent68d3bbb2e6dfbf117c46e942142795b2cdd0274b (diff)
upstream commit
improve printing of rdomain on accept() a little OpenBSD-Commit-ID: 5da58db2243606899cedaa646c70201b2d12247a
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index 535cb97f0..6a8e3762a 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.496 2017/10/25 00:19:47 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.497 2017/10/27 00:18:41 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
@@ -2041,10 +2041,11 @@ main(int ac, char **av)
2041 2041
2042 /* Log the connection. */ 2042 /* Log the connection. */
2043 laddr = get_local_ipaddr(sock_in); 2043 laddr = get_local_ipaddr(sock_in);
2044 verbose("Connection from %s port %d on %s port %d%s%s", 2044 verbose("Connection from %s port %d on %s port %d%s%s%s",
2045 remote_ip, remote_port, laddr, ssh_local_port(ssh), 2045 remote_ip, remote_port, laddr, ssh_local_port(ssh),
2046 rdomain == NULL ? "" : " rdomain ", 2046 rdomain == NULL ? "" : " rdomain \"",
2047 rdomain == NULL ? "" : rdomain); 2047 rdomain == NULL ? "" : rdomain,
2048 rdomain == NULL ? "" : "\"");
2048 free(laddr); 2049 free(laddr);
2049 2050
2050 /* 2051 /*