Skip to content

Commit 43fe6be

Browse files
authored
Merge pull request #5065 from NicksWorld/luasocketpatch
Fix possible crash in luasockets
2 parents ef7e85e + fc9f614 commit 43fe6be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/luasocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int lua_server_accept(int id,bool fail_on_timeout)
103103
CActiveSocket* sock=cur_server.socket->Accept();
104104
if(!sock)
105105
{
106-
handle_error(sock->GetSocketError(),!fail_on_timeout);
106+
handle_error(cur_server.socket->GetSocketError(),!fail_on_timeout);
107107
return 0;
108108
}
109109
else

0 commit comments

Comments
 (0)