From 4d97ba22570f1edebeed41ce33f7ca06475a173f Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 11 Jul 2000 18:15:50 +1000 Subject: - (djm) Fix problem with debug mode and MaxStartups --- session.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'session.c') 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) * authentication. */ alarm(0); - close(startup_pipe); + if (startup_pipe != -1) + close(startup_pipe); /* * Inform the channel mechanism that we are the server side and that @@ -1792,7 +1793,8 @@ do_authenticated2(void) * authentication. */ alarm(0); - close(startup_pipe); + if (startup_pipe != -1) + close(startup_pipe); server_loop2(); if (xauthfile) xauthfile_cleanup_proc(NULL); -- cgit v1.2.3