summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index a6620a05a..6e5bb5476 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.363 2008/07/01 07:24:22 dtucker Exp $ */ 1/* $OpenBSD: sshd.c,v 1.364 2008/07/10 18:08:11 markus 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
@@ -677,7 +677,7 @@ privsep_postauth(Authctxt *authctxt)
677 if (pmonitor->m_pid == -1) 677 if (pmonitor->m_pid == -1)
678 fatal("fork of unprivileged child failed"); 678 fatal("fork of unprivileged child failed");
679 else if (pmonitor->m_pid != 0) { 679 else if (pmonitor->m_pid != 0) {
680 debug2("User child is on pid %ld", (long)pmonitor->m_pid); 680 verbose("User child is on pid %ld", (long)pmonitor->m_pid);
681 close(pmonitor->m_recvfd); 681 close(pmonitor->m_recvfd);
682 buffer_clear(&loginmsg); 682 buffer_clear(&loginmsg);
683 monitor_child_postauth(pmonitor); 683 monitor_child_postauth(pmonitor);
@@ -1248,6 +1248,7 @@ main(int ac, char **av)
1248 int remote_port; 1248 int remote_port;
1249 char *line, *p, *cp; 1249 char *line, *p, *cp;
1250 int config_s[2] = { -1 , -1 }; 1250 int config_s[2] = { -1 , -1 };
1251 u_int64_t ibytes, obytes;
1251 mode_t new_umask; 1252 mode_t new_umask;
1252 Key *key; 1253 Key *key;
1253 Authctxt *authctxt; 1254 Authctxt *authctxt;
@@ -1919,7 +1920,11 @@ main(int ac, char **av)
1919 do_authenticated(authctxt); 1920 do_authenticated(authctxt);
1920 1921
1921 /* The connection has been terminated. */ 1922 /* The connection has been terminated. */
1922 verbose("Closing connection to %.100s", remote_ip); 1923 packet_get_state(MODE_IN, NULL, NULL, NULL, &ibytes);
1924 packet_get_state(MODE_OUT, NULL, NULL, NULL, &obytes);
1925 verbose("Transferred: sent %llu, received %llu bytes", obytes, ibytes);
1926
1927 verbose("Closing connection to %.500s port %d", remote_ip, remote_port);
1923 1928
1924#ifdef USE_PAM 1929#ifdef USE_PAM
1925 if (options.use_pam) 1930 if (options.use_pam)