]> andersk Git - openssh.git/blobdiff - session.c
- (djm) OpenBSD CVS Updates:
[openssh.git] / session.c
index abf3ef3461ae6274533c645f3e676c7ab2b595aa..3e889dbf1b4af99646fe1c5fb84dcf4980ccc21e 100644 (file)
--- a/session.c
+++ b/session.c
@@ -8,7 +8,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.22 2000/07/05 20:18:07 deraadt Exp $");
+RCSID("$OpenBSD: session.c,v 1.23 2000/07/11 08:11:33 deraadt Exp $");
 
 #include "xmalloc.h"
 #include "ssh.h"
@@ -169,8 +169,10 @@ do_authenticated(struct passwd * pw)
         * authentication.
         */
        alarm(0);
-       if (startup_pipe != -1)
+       if (startup_pipe != -1) {
                close(startup_pipe);
+               startup_pipe = -1;
+       }
 
        /*
         * Inform the channel mechanism that we are the server side and that
@@ -1793,8 +1795,10 @@ do_authenticated2(void)
         * authentication.
         */
        alarm(0);
-       if (startup_pipe != -1)
+       if (startup_pipe != -1) {
                close(startup_pipe);
+               startup_pipe = -1;
+       }
        server_loop2();
        if (xauthfile)
                xauthfile_cleanup_proc(NULL);
This page took 0.036663 seconds and 4 git commands to generate.