]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Check "result" in dup_all(), by Florian Obser.
authorRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 29 Mar 2018 08:02:26 +0000 (08:02 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 29 Mar 2018 08:02:26 +0000 (08:02 +0000)
git-svn-id: file:///svn/unbound/trunk@4598 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/authzone.c

index cbcd1879540e76600d37055968a9bf00b025e44a..bceef727941b904b22e11d938de0646d87ec5397 100644 (file)
@@ -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
 
index 13e36b2cbeec3ca55670e2fd595a7a7d39d92ee8..fac8e4ed1c24967846de279817a1fe632f62aaa5 100644 (file)
@@ -5946,7 +5946,7 @@ static char*
 dup_all(char* str)
 {
        char* result = strdup(str);
-       if(!str) {
+       if(!result) {
                log_err("malloc failure");
                return NULL;
        }