mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Skip trailing \0 in domain name.
This commit is contained in:
committed by
Simon Kelley
parent
970ce22b68
commit
c7a93f6e4e
@@ -99,6 +99,7 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf)
|
||||
}
|
||||
*buf++ = '.';
|
||||
}
|
||||
rr++;
|
||||
*buf = 0;
|
||||
if (rr == end)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user