mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-25 12:14:38 +00:00
Skip trailing \0 in domain name.
This commit is contained in:
1 parent
970ce22b68
commit
c7a93f6e4e
1 file changed
+1
@@ -99,6 +99,7 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf)
|
|||||||
}
|
}
|
||||||
*buf++ = '.';
|
*buf++ = '.';
|
||||||
}
|
}
|
||||||
|
rr++;
|
||||||
*buf = 0;
|
*buf = 0;
|
||||||
if (rr == end)
|
if (rr == end)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user