Merge pull request #3770 from Abhineet-Ayan-Verma/patch-1

Fixed undefined behavior in wf_peer_main_loop function
This commit is contained in:
akallabeth 2017-02-15 16:43:43 +01:00 committed by GitHub
commit eeb060e9a7

View File

@ -279,11 +279,11 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam)
if (!client->Initialize(client))
goto fail_client_initialize;
context = (wfPeerContext*) client->context;
if (context->socketClose)
goto fail_socked_closed;
context = (wfPeerContext*) client->context;
wfi = context->info;
if (wfi->input_disabled)