mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
prepend a 0ed header to the overflowed packet being dumped
This commit is contained in:
parent
6d1671950a
commit
06b9f44741
1 changed files with 7 additions and 1 deletions
|
@ -747,8 +747,14 @@ SV_SendClientMessages (void)
|
|||
// drop the client
|
||||
if (c->netchan.message.overflowed) {
|
||||
extern void Analyze_Server_Packet (byte *data, int len);
|
||||
byte *data = Hunk_TempAlloc (c->netchan.message.cursize + 8);
|
||||
|
||||
memset (data, 0, 8);
|
||||
memcpy (data + 8, c->netchan.message.data,
|
||||
c->netchan.message.cursize);
|
||||
Analyze_Server_Packet (c->netchan.message.data,
|
||||
c->netchan.message.cursize + 8);
|
||||
|
||||
Analyze_Server_Packet (c->netchan.message.data, c->netchan.message.cursize);
|
||||
SZ_Clear (&c->netchan.message);
|
||||
SZ_Clear (&c->datagram);
|
||||
SV_BroadcastPrintf (PRINT_HIGH, "%s overflowed\n", c->name);
|
||||
|
|
Loading…
Reference in a new issue