mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
canonicalise_opt must always return heap memory.
Thanks to Max Julian Hofmann for spotting this.
This commit is contained in:
@@ -654,7 +654,7 @@ static char *canonicalise_opt(char *s)
|
||||
return 0;
|
||||
|
||||
if (strlen(s) == 0)
|
||||
return "";
|
||||
return opt_string_alloc("");
|
||||
|
||||
unhide_metas(s);
|
||||
if (!(ret = canonicalise(s, &nomem)) && nomem)
|
||||
|
||||
Reference in New Issue
Block a user