Skip to content

Commit bf58ab6

Browse files
authored
Because QName max. size is 256, the QNameLength range must be able to address it. Therefore the datatype was changed to uint16_t. (#6354)
1 parent c280225 commit bf58ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/DNSServer/src/DNSServer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct DNSHeader
6767
struct DNSQuestion
6868
{
6969
uint8_t QName[256] ; //need 1 Byte for zero termination!
70-
uint8_t QNameLength ;
70+
uint16_t QNameLength ;
7171
uint16_t QType ;
7272
uint16_t QClass ;
7373
} ;

0 commit comments

Comments
 (0)