]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
sync missed changes V_2_0_0_TEST1
authorDamien Miller <djm@mindrot.org>
Sun, 30 Apr 2000 00:12:49 +0000 (10:12 +1000)
committerDamien Miller <djm@mindrot.org>
Sun, 30 Apr 2000 00:12:49 +0000 (10:12 +1000)
session.c

index de39d8844ab3942fdfebc22f19af216c4408628e..c6253139c9e7400455e0562e975c9e42792a87a2 100644 (file)
--- a/session.c
+++ b/session.c
@@ -8,7 +8,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.6 2000/04/27 15:23:02 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.8 2000/04/29 16:06:08 markus Exp $");
 
 #include "xmalloc.h"
 #include "ssh.h"
@@ -1354,6 +1354,8 @@ session_input_channel_req(int id, void *arg)
         */
        if (c->type == SSH_CHANNEL_LARVAL) {
                if (strcmp(rtype, "shell") == 0) {
+                       packet_done();
+                       s->extended = 1;
                        if (s->ttyfd == -1)
                                do_exec_no_pty(s, NULL, s->pw);
                        else
@@ -1363,7 +1365,6 @@ session_input_channel_req(int id, void *arg)
                        char *command = packet_get_string(&len);
                        packet_done();
                        s->extended = 1;
-                       s->extended = 1;
                        if (s->ttyfd == -1)
                                do_exec_no_pty(s, command, s->pw);
                        else
@@ -1550,6 +1551,6 @@ do_authenticated2(void)
         */
        alarm(0);
        server_loop2();
-       if (xauthfile)
-               xauthfile_cleanup_proc(NULL);
+       if (xauthfile)
+               xauthfile_cleanup_proc(NULL);
 }