Skip to content

Commit

Permalink
server: don't allow active clients to start downloads
Browse files Browse the repository at this point in the history
Fixes potential exploits such as causing CTF flags to disappear in unpatched mods.
  • Loading branch information
Chomenor committed Jan 10, 2025
1 parent f5b387e commit 3c9f9d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ SV_BeginDownload_f
==================
*/
static void SV_BeginDownload_f( client_t *cl ) {
if ( cl->state == CS_ACTIVE )
return;

// Kill any existing download
SV_CloseDownload( cl );
Expand Down

0 comments on commit 3c9f9d3

Please sign in to comment.