diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2021-07-20 23:22:37 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2021-07-20 23:22:37 +0100 |
commit | 32e15c3f458c2e8838a9ecf7d478ecb6750516bf (patch) | |
tree | 99e3fbf7d116e993759804725c56fffd59fa0fa9 | |
parent | f0dc324e3571fd570a9c96f23396119bb05a7493 (diff) | |
download | dnsmasq-32e15c3f458c2e8838a9ecf7d478ecb6750516bf.tar.gz |
canonicalise_opt must always return heap memory.
Thanks to Max Julian Hofmann for spotting this.
-rw-r--r-- | src/option.c | 2 |
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) |