mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-31 13:10:35 +00:00
Fix problen in from_wire() when names contain escape chars.
Thanks to Royce M <royce@xchglabs.com> for spotting this.
This commit is contained in:
1 file changed
+1
@@ -394,6 +394,7 @@ void from_wire(char *name)
|
||||
if (IS_NAME_ESCAPE(c))
|
||||
{
|
||||
memmove(p+1, p, 1 + last - p);
|
||||
last++;
|
||||
len++;
|
||||
*p++ = NAME_ESCAPE;
|
||||
(*p)++;
|
||||
|
||||
Reference in new issue
Block a user