- (djm) Fix problem with debug mode and MaxStartups

This commit is contained in:
Damien Miller 2000-07-11 18:15:50 +10:00
parent 3702396526
commit 4d97ba2257
3 changed files with 6 additions and 2 deletions

View File

@ -49,6 +49,7 @@
- ho@cvs.openbsd.org 2000/07/10 10:30:25
[cipher.c kex.c servconf.c]
strtok() --> strsep(). (niels@ ok)
- (djm) Fix problem with debug mode and MaxStartups
20000709
- (djm) Only enable PAM_TTY kludge for Linux. Problem report from

View File

@ -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);

1
sshd.c
View File

@ -855,6 +855,7 @@ main(int ac, char **av)
sock_in = newsock;
sock_out = newsock;
pid = getpid();
startup_pipe = -1;
break;
} else {
/*