summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-11 18:15:50 +1000
committerDamien Miller <djm@mindrot.org>2000-07-11 18:15:50 +1000
commit4d97ba22570f1edebeed41ce33f7ca06475a173f (patch)
treeb2aa8206e983f0b76ac4b91b82780a38ca79e473 /session.c
parent3702396526a2569402696ff7d7c6d0fe2e5a447b (diff)
- (djm) Fix problem with debug mode and MaxStartups
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/session.c b/session.c
index 96a2d3b52..abf3ef346 100644
--- a/session.c
+++ b/session.c
@@ -169,7 +169,8 @@ do_authenticated(struct passwd * pw)
169 * authentication. 169 * authentication.
170 */ 170 */
171 alarm(0); 171 alarm(0);
172 close(startup_pipe); 172 if (startup_pipe != -1)
173 close(startup_pipe);
173 174
174 /* 175 /*
175 * Inform the channel mechanism that we are the server side and that 176 * Inform the channel mechanism that we are the server side and that
@@ -1792,7 +1793,8 @@ do_authenticated2(void)
1792 * authentication. 1793 * authentication.
1793 */ 1794 */
1794 alarm(0); 1795 alarm(0);
1795 close(startup_pipe); 1796 if (startup_pipe != -1)
1797 close(startup_pipe);
1796 server_loop2(); 1798 server_loop2();
1797 if (xauthfile) 1799 if (xauthfile)
1798 xauthfile_cleanup_proc(NULL); 1800 xauthfile_cleanup_proc(NULL);