summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-12 09:45:27 +1000
committerDamien Miller <djm@mindrot.org>2000-07-12 09:45:27 +1000
commit182ee6e6d9b13f0a117a19bd4b9e3318a74233eb (patch)
tree016940bacc612da29db1b463cd0684f74796f697 /session.c
parentb2dc28e9c8584884fda5fb8bfef1125ecac78628 (diff)
- (djm) OpenBSD CVS Updates:
- deraadt@cvs.openbsd.org 2000/07/11 02:11:34 [session.c sshd.c ] make MaxStartups code still work with -d; djm - deraadt@cvs.openbsd.org 2000/07/11 13:17:45 [readconf.c ssh_config] disable FallBackToRsh by default
Diffstat (limited to 'session.c')
-rw-r--r--session.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/session.c b/session.c
index abf3ef346..3e889dbf1 100644
--- a/session.c
+++ b/session.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#include "includes.h" 10#include "includes.h"
11RCSID("$OpenBSD: session.c,v 1.22 2000/07/05 20:18:07 deraadt Exp $"); 11RCSID("$OpenBSD: session.c,v 1.23 2000/07/11 08:11:33 deraadt Exp $");
12 12
13#include "xmalloc.h" 13#include "xmalloc.h"
14#include "ssh.h" 14#include "ssh.h"
@@ -169,8 +169,10 @@ do_authenticated(struct passwd * pw)
169 * authentication. 169 * authentication.
170 */ 170 */
171 alarm(0); 171 alarm(0);
172 if (startup_pipe != -1) 172 if (startup_pipe != -1) {
173 close(startup_pipe); 173 close(startup_pipe);
174 startup_pipe = -1;
175 }
174 176
175 /* 177 /*
176 * Inform the channel mechanism that we are the server side and that 178 * Inform the channel mechanism that we are the server side and that
@@ -1793,8 +1795,10 @@ do_authenticated2(void)
1793 * authentication. 1795 * authentication.
1794 */ 1796 */
1795 alarm(0); 1797 alarm(0);
1796 if (startup_pipe != -1) 1798 if (startup_pipe != -1) {
1797 close(startup_pipe); 1799 close(startup_pipe);
1800 startup_pipe = -1;
1801 }
1798 server_loop2(); 1802 server_loop2();
1799 if (xauthfile) 1803 if (xauthfile)
1800 xauthfile_cleanup_proc(NULL); 1804 xauthfile_cleanup_proc(NULL);