Fixed undefined behavior in wf_peer_main_loop function
Undefined behavior on "wfPeerContext *context", as it is accessed before being initialized or assigned. Fixed.
This commit is contained in:
parent
0540e189b1
commit
999cc22cdd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user