summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-07-20 23:22:37 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-07-20 23:22:37 +0100
commit32e15c3f458c2e8838a9ecf7d478ecb6750516bf (patch)
tree99e3fbf7d116e993759804725c56fffd59fa0fa9
parentf0dc324e3571fd570a9c96f23396119bb05a7493 (diff)
downloaddnsmasq-32e15c3f458c2e8838a9ecf7d478ecb6750516bf.tar.gz
canonicalise_opt must always return heap memory.
Thanks to Max Julian Hofmann for spotting this.
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 84c9ef3..ca8563a 100644
--- a/src/option.c
+++ b/src/option.c
@@ -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)