projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure we do notify_remote_exit(ssh->frontend) _before_
[u/mdw/putty]
/
ssh.c
diff --git
a/ssh.c
b/ssh.c
index
0435dd7
..
7f3748a
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-2517,6
+2517,9
@@
static int ssh_closing(Plug plug, const char *error_msg, int error_code,
error_msg = "Server unexpectedly closed network connection";
}
error_msg = "Server unexpectedly closed network connection";
}
+ if (need_notify)
+ notify_remote_exit(ssh->frontend);
+
if (error_msg) {
/* A socket error has occurred. */
logevent(error_msg);
if (error_msg) {
/* A socket error has occurred. */
logevent(error_msg);
@@
-2524,8
+2527,6
@@
static int ssh_closing(Plug plug, const char *error_msg, int error_code,
} else {
logevent("Server closed network connection");
}
} else {
logevent("Server closed network connection");
}
- if (need_notify)
- notify_remote_exit(ssh->frontend);
return 0;
}
return 0;
}