mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix error handling on inconsistent client ready message
Fix android makefile to provide a correct dummy githash if detection fails
This commit is contained in:
@@ -1732,14 +1732,20 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
||||
|
||||
if (playersao == NULL) {
|
||||
errorstream
|
||||
<< "TOSERVER_CLIENT_READY stage 2 client init failed for peer "
|
||||
<< "TOSERVER_CLIENT_READY stage 2 client init failed for peer_id: "
|
||||
<< peer_id << std::endl;
|
||||
m_con.DisconnectPeer(peer_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(datasize < 2+8)
|
||||
if(datasize < 2+8) {
|
||||
errorstream
|
||||
<< "TOSERVER_CLIENT_READY client sent inconsistent data, disconnecting peer_id: "
|
||||
<< peer_id << std::endl;
|
||||
m_con.DisconnectPeer(peer_id);
|
||||
return;
|
||||
}
|
||||
|
||||
m_clients.setClientVersion(
|
||||
peer_id,
|
||||
|
Reference in New Issue
Block a user