1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

windows: Fix control-flow error in select_result().

When making select_result() return void (a2fb1d9), I removed a "return"
at the end of the FD_CLOSE case, causing a fallthrough into FD_ACCEPT
with hilarious (segfaulting) consequences.  Re-instate the "return".
This commit is contained in:
Ben Harris 2017-05-17 23:02:14 +01:00
parent 0d57b8a4d9
commit c7b9f846d9

View File

@ -1765,6 +1765,7 @@ void select_result(WPARAM wParam, LPARAM lParam)
plug_closing(s->plug, NULL, 0, 0); plug_closing(s->plug, NULL, 0, 0);
} }
} while (ret > 0); } while (ret > 0);
return;
case FD_ACCEPT: case FD_ACCEPT:
{ {
#ifdef NO_IPV6 #ifdef NO_IPV6