Skip to content

Commit

Permalink
Fix potential crash in luasocket
Browse files Browse the repository at this point in the history
  • Loading branch information
NicksWorld committed Nov 30, 2024
1 parent c0f208a commit fc9f614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/luasocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int lua_server_accept(int id,bool fail_on_timeout)
CActiveSocket* sock=cur_server.socket->Accept();
if(!sock)
{
handle_error(sock->GetSocketError(),!fail_on_timeout);
handle_error(cur_server.socket->GetSocketError(),!fail_on_timeout);
return 0;
}
else
Expand Down

0 comments on commit fc9f614

Please sign in to comment.