From 0f7a35813dc1ebc25a2b139cc1a33fee1ce9e7c5 Mon Sep 17 00:00:00 2001 From: BlueAndi Date: Sun, 27 Feb 2022 21:15:49 +0100 Subject: [PATCH] Because QName max. size is 256, the QNameLength range must be able to address it. Therefore the datatype was changed to uint16_t. --- libraries/DNSServer/src/DNSServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/DNSServer/src/DNSServer.h b/libraries/DNSServer/src/DNSServer.h index a8de0eff73b..f237a4e358d 100644 --- a/libraries/DNSServer/src/DNSServer.h +++ b/libraries/DNSServer/src/DNSServer.h @@ -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 ; } ;