Because QName max. size is 256, the QNameLength range must be able to address it. Therefore the datatype was changed to uint16_t. (#6354)

This commit is contained in:
Andreas Merkle
2022-02-28 13:42:48 +01:00
committed by GitHub
parent c280225738
commit bf58ab65e9

View File

@ -67,7 +67,7 @@ struct DNSHeader
struct DNSQuestion struct DNSQuestion
{ {
uint8_t QName[256] ; //need 1 Byte for zero termination! uint8_t QName[256] ; //need 1 Byte for zero termination!
uint8_t QNameLength ; uint16_t QNameLength ;
uint16_t QType ; uint16_t QType ;
uint16_t QClass ; uint16_t QClass ;
} ; } ;