X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9c964e8579f6597d1bfdacd6dcf8d531bfece511..6a32cafc97cfa7c86403077d7aa7473964f33344:/winnet.c?ds=sidebyside diff --git a/winnet.c b/winnet.c index 372845d5..fb276168 100644 --- a/winnet.c +++ b/winnet.c @@ -569,7 +569,11 @@ int select_result(WPARAM wParam, LPARAM lParam) { return 1; /* boggle */ if ((err = WSAGETSELECTERROR(lParam)) != 0) { - fatalbox(winsock_error_string(err)); + /* + * An error has occurred on this socket. Pass it to the + * receiver function. + */ + return s->receiver(s, 3, winsock_error_string(err), err); } noise_ultralight(lParam); @@ -584,7 +588,7 @@ int select_result(WPARAM wParam, LPARAM lParam) { } } if (ret < 0) { - fatalbox(winsock_error_string(err)); + return s->receiver(s, 3, winsock_error_string(err), err); } else { int type = s->in_oob ? 2 : 0; s->in_oob = FALSE;