Skip to content

Commit

Permalink
Because QName max. size is 256, the QNameLength range must be able to…
Browse files Browse the repository at this point in the history
… address it. Therefore the datatype was changed to uint16_t. (#6354)
  • Loading branch information
BlueAndi authored Feb 28, 2022
1 parent c280225 commit bf58ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/DNSServer/src/DNSServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct DNSHeader
struct DNSQuestion
{
uint8_t QName[256] ; //need 1 Byte for zero termination!
uint8_t QNameLength ;
uint16_t QNameLength ;
uint16_t QType ;
uint16_t QClass ;
} ;
Expand Down

0 comments on commit bf58ab6

Please sign in to comment.