projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve socket error handling so that a socket error isn't an
[u/mdw/putty]
/
rlogin.c
diff --git
a/rlogin.c
b/rlogin.c
index
b3e9eac
..
c77f381
100644
(file)
--- a/
rlogin.c
+++ b/
rlogin.c
@@
-25,6
+25,11
@@
static void c_write (char *buf, int len) {
}
static int rlogin_receive (Socket s, int urgent, char *data, int len) {
+ if (urgent==3) {
+ /* A socket error has occurred. */
+ connection_fatal(data);
+ len = 0;
+ }
if (!len) {
/* Connection has closed. */
sk_close(s);