mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
ssh_closing: distinguish socket errors from EOF.
I forgot to check the error_msg parameter at all.
This commit is contained in:
parent
c912d0936d
commit
ed0104c2fe
4
ssh.c
4
ssh.c
@ -507,7 +507,9 @@ static void ssh_closing(Plug plug, const char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
{
|
||||
Ssh ssh = FROMFIELD(plug, struct ssh_tag, plugvt);
|
||||
if (ssh->bpp) {
|
||||
if (error_msg) {
|
||||
ssh_remote_error(ssh, "Network error: %s", error_msg);
|
||||
} else if (ssh->bpp) {
|
||||
ssh->bpp->input_eof = TRUE;
|
||||
queue_idempotent_callback(&ssh->bpp->ic_in_raw);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user