From 5fabe62e704ea084d7ba4c216df496ccfe495b73 Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Thu, 29 Mar 2018 08:02:26 +0000 Subject: [PATCH] - Check "result" in dup_all(), by Florian Obser. git-svn-id: file:///svn/unbound/trunk@4598 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ services/authzone.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; }