summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/ssh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c
index 14e8ef2e5..0fce63315 100644
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -961,7 +961,13 @@ dispatch(void)
switch(recv.r[0]){
case MSG_IGNORE:
+ return;
case MSG_GLOBAL_REQUEST:
+ if(unpack(recv.r, recv.w-recv.r, "_sb", &s, &n, &b) < 0)
+ break;
+ if(debug)
+ fprint(2, "%s: ignoring global request %.*s\n", argv0, n, s);
+ if(b != 0) sendpkt("b", MSG_REQUEST_FAILURE);
return;
case MSG_DISCONNECT:
if(unpack(recv.r, recv.w-recv.r, "_us", &c, &s, &n) < 0)