From: divverent Date: Fri, 10 Apr 2009 18:45:10 +0000 (+0000) Subject: don't need to clear rcon_password on QW server reconnect, as *ip can't be written... X-Git-Tag: xonotic-v0.1.0preview~1714 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8edc360701506cfa26f8f16952e68d2125a41dcb;p=xonotic%2Fdarkplaces.git don't need to clear rcon_password on QW server reconnect, as *ip can't be written to by the user git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8896 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index bc196c93..ccf6c5bc 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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;