diff --git a/doc/Changelog b/doc/Changelog index cbcd18795..bceef7279 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +29 March 2018: Ralph + - Check "result" in dup_all(), by Florian Obser. + 23 March 2018: Ralph - Fix unbound-control get_option aggressive-nsec diff --git a/services/authzone.c b/services/authzone.c index 13e36b2cb..fac8e4ed1 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -5946,7 +5946,7 @@ static char* dup_all(char* str) { char* result = strdup(str); - if(!str) { + if(!result) { log_err("malloc failure"); return NULL; }