mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Merge ssh_sw_abort_deferred fix from 'pre-0.77'.
This commit is contained in:
commit
e94097ccf6
@ -296,8 +296,8 @@ static void mainchan_request_response(Channel *chan, bool success)
|
|||||||
* If there's no remote_cmd2 configured, then we have no
|
* If there's no remote_cmd2 configured, then we have no
|
||||||
* fallback command, so we've run out of options.
|
* fallback command, so we've run out of options.
|
||||||
*/
|
*/
|
||||||
ssh_sw_abort(mc->ppl->ssh,
|
ssh_sw_abort_deferred(mc->ppl->ssh,
|
||||||
"Server refused to start a shell/command");
|
"Server refused to start a shell/command");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -310,8 +310,8 @@ static void mainchan_request_response(Channel *chan, bool success)
|
|||||||
ssh_got_fallback_cmd(mc->ppl->ssh);
|
ssh_got_fallback_cmd(mc->ppl->ssh);
|
||||||
mainchan_ready(mc);
|
mainchan_ready(mc);
|
||||||
} else {
|
} else {
|
||||||
ssh_sw_abort(mc->ppl->ssh,
|
ssh_sw_abort_deferred(mc->ppl->ssh,
|
||||||
"Server refused to start a shell/command");
|
"Server refused to start a shell/command");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user