Fix: CDcsProtocol::IsIgnorePacket always returns false. (#4)

Corrects a bug, looking at upstream this is the correct behaviour.
pull/5/head
iamsi 5 years ago committed by GitHub
parent 9ef9110c26
commit 436ebcca73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -422,7 +422,7 @@ bool CDcsProtocol::IsIgnorePacket(const CBuffer &Buffer)
{
uint8 tag[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
if ( 15==Buffer.size() == 15 && 0==Buffer.Compare(tag, sizeof(tag)) )
if ( Buffer.size() == 15 && Buffer.Compare(tag, sizeof(tag)) == 0 )
return true;
return false;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.