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]
/
raw.c
diff --git
a/raw.c
b/raw.c
index
61a7d66
..
c354580
100644
(file)
--- a/
raw.c
+++ b/
raw.c
@@
-25,6
+25,11
@@
static void c_write (char *buf, int len) {
}
static int raw_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);