mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix off-by-one overwrite.
This commit is contained in:
@@ -353,7 +353,8 @@ static void from_wire(char *name)
|
||||
l[len] = '.';
|
||||
}
|
||||
|
||||
*(l-1) = 0;
|
||||
if (l != name)
|
||||
*(l-1) = 0;
|
||||
}
|
||||
|
||||
/* Input in presentation format */
|
||||
|
||||
Reference in New Issue
Block a user