Skip to content

Commit

Permalink
Runt packets not being dropped properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb James DeLisle committed Sep 3, 2012
1 parent d2dd28c commit ed43217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/CryptoAuth.c
Expand Up @@ -838,7 +838,7 @@ static uint8_t receiveMessage(struct Message* received, struct Interface* interf
struct CryptoAuth_Wrapper* wrapper = (struct CryptoAuth_Wrapper*) interface->receiverContext;
union Headers_CryptoAuth* header = (union Headers_CryptoAuth*) received->bytes;

if (received->length < (wrapper->requireAuth ? 20 : 4)) {
if (received->length < (wrapper->authenticatePackets ? 20 : 4)) {
Log_debug(wrapper->context->logger, "Dropped runt");
return Error_UNDERSIZE_MESSAGE;
}
Expand Down

0 comments on commit ed43217

Please sign in to comment.