mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-22 11:46:09 +00:00
canonicalise_opt must always return heap memory.
Thanks to Max Julian Hofmann for spotting this.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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