Skip to content
Permalink
Browse files

server: removed unnecessary userinfo strings after connection

  • Loading branch information
rmarquis committed Feb 9, 2020
1 parent 6a1eab0 commit 3a14a26b31b50cf7bd0e2767a3a07db938d30c08
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/server/sv_client.c
@@ -335,6 +335,11 @@ void SV_DirectConnect(netadr_t from)
challenge = atoi(Info_ValueForKey(userinfo, "challenge"));
qport = atoi(Info_ValueForKey(userinfo, "qport"));

// we don't need these keys after connection, release some space in userinfo
Info_RemoveKey(userinfo, "challenge");
Info_RemoveKey(userinfo, "qport");
Info_RemoveKey(userinfo, "protocol");

// quick reject
for (i = 0, cl = svs.clients ; i < sv_maxclients->integer ; i++, cl++)
{

0 comments on commit 3a14a26

Please sign in to comment.
You can’t perform that action at this time.