Fixes a bug that made the server to deny non-empty passwords from players connecting...
authorPerttu Ahola <celeron55@gmail.com>
Sun, 31 Jul 2011 12:51:24 +0000 (15:51 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 31 Jul 2011 12:51:24 +0000 (15:51 +0300)
doc/changelog.txt
src/server.cpp

index 3ae571dcae1d403971bf22023d42555b1cad6d0f..2c577b421b61641e8db911c77c5323aa3b275e21 100644 (file)
@@ -3,6 +3,9 @@ Minetest-c55 changelog
 This should contain all the major changes.
 For minor stuff, refer to the commit log of the repository.
 
+2011-07-31_3:
+- Fixes a bug that made the server to deny non-empty passwords from players connecting the first time
+
 2011-07-31_2:
 - Fixes a bug that caused the server to always read an empty password from the client when a client connected.
 
index 35c186b5d339f77a2d4c67058db5aef01bd366fb..8a19306a9a55b7c1aeeaf12274178f5248494acc 100644 (file)
@@ -2047,7 +2047,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
                /*dstream<<"Server: Client gave password '"<<password
                                <<"', the correct one is '"<<checkpwd<<"'"<<std::endl;*/
                
-               if(password != checkpwd)
+               if(password != checkpwd && m_authmanager.exists(playername))
                {
                        derr_server<<DTIME<<"Server: peer_id="<<peer_id
                                        <<": supplied invalid password for "