]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't need to clear rcon_password on QW server reconnect, as *ip can't be written...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 18:45:10 +0000 (18:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 18:45:10 +0000 (18:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8896 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index bc196c936fdb7bc623d2e8ec9ec587885a569cec..ccf6c5bc5c87d114caede29c5563e27fdae1747d 100644 (file)
@@ -473,12 +473,7 @@ void Host_Reconnect_f (void)
                // will still contain its IP address, so get the address...
                InfoString_GetValue(cls.userinfo, "*ip", temp, sizeof(temp));
                if (temp[0])
-               {
-                       // clear the rcon password, to prevent vulnerability by stuffcmd-ing a setinfo command to change *ip, then reconnect
-                       if(!rcon_secure.integer)
-                               Cvar_SetQuick(&rcon_password, "");
                        CL_EstablishConnection(temp);
-               }
                else
                        Con_Printf("Reconnect to what server?  (you have not connected to a server yet)\n");
                return;