summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/session.c b/session.c
index de39d884..c6253139 100644
--- 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);
}