From 6d9f8ffd1e5113b24fcfb4c89b6300742ddd2361 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Thu, 1 Apr 2010 19:00:24 +0000 Subject: * (bug 4582) Another bad userinfo fix --- src/game/g_client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/g_client.c b/src/game/g_client.c index 0cdd7d0b..c803ca1c 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -999,6 +999,11 @@ char *ClientUserinfoChanged( int clientNum ) "dropped: illegal or malformed userinfo"); return "Illegal or malformed userinfo"; } + // If their userinfo overflowed, tremded is in the process of disconnecting them. + // If we send our own disconnect, it won't work, so just return to prevent crashes later + // in this function. This check must come after the Info_Validate call. + else if( !userinfo[ 0 ] ) + return "Empty (overflowed) userinfo"; // stickyspec toggle s = Info_ValueForKey( userinfo, "cg_stickySpec" ); -- cgit