Skip to content

Commit b85b0e2

Browse files
committed
Tweak spew if packet fails to decode.
Also fix typo in comment P4:6571069
1 parent c852826 commit b85b0e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ bool CSteamNetworkConnectionBase::DecryptDataChunk( uint16 nWireSeqNum, int cbPa
21312131
if ( ctx.m_nPktNum <= 0 )
21322132
{
21332133

2134-
// Update raw packet counters numbers, but do not update any logical state suc as reply timeouts, etc
2134+
// Update raw packet counters numbers, but do not update any logical state such as reply timeouts, etc
21352135
m_statsEndToEnd.m_recv.ProcessPacket( cbPacketSize );
21362136
return false;
21372137
}
@@ -2183,9 +2183,10 @@ bool CSteamNetworkConnectionBase::DecryptDataChunk( uint16 nWireSeqNum, int cbPa
21832183
// The assumption is that we either have a bug or some weird thing,
21842184
// or that somebody is spoofing / tampering. If it's the latter
21852185
// we don't want to magnify the impact of their efforts
2186-
SpewWarningRateLimited( ctx.m_usecNow, "[%s] Packet data chunk failed to decrypt! Could be tampering/spoofing or a bug.", GetDescription() );
2186+
SpewWarningRateLimited( ctx.m_usecNow, "[%s] Packet %lld (0x%x) decrypt failed (tampering/spoofing/bug)!",
2187+
GetDescription(), (long long)ctx.m_nPktNum, (unsigned)nWireSeqNum );
21872188

2188-
// Update raw packet counters numbers, but do not update any logical state suc as reply timeouts, etc
2189+
// Update raw packet counters numbers, but do not update any logical state such as reply timeouts, etc
21892190
m_statsEndToEnd.m_recv.ProcessPacket( cbPacketSize );
21902191
return false;
21912192
}

0 commit comments

Comments
 (0)