diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "includes.h" | 10 | #include "includes.h" |
11 | RCSID("$OpenBSD: session.c,v 1.22 2000/07/05 20:18:07 deraadt Exp $"); | 11 | RCSID("$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); |