Skip to content

Commit fc9f614

Browse files
committed
Fix potential crash in luasocket
1 parent c0f208a commit fc9f614

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)