]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #574: Review fixes for size allocation.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 1 Dec 2021 03:31:58 +0000 (04:31 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 1 Dec 2021 03:31:58 +0000 (04:31 +0100)
doc/Changelog
smallapp/unbound-checkconf.c

index 0095414476b40a014a53083753b7d1334271057c..c5ed72778a889f7c4b6e201bc485bd3b897911e9 100644 (file)
@@ -7,6 +7,7 @@
        - Merge PR #522 from sibeream: memory management violations fixed.
        - Merge PR #530 from Shchelk: Fix: dereferencing a null pointer.
        - Fix #454: listen_dnsport.c:825: error: ‘IPV6_TCLASS’ undeclared.
+       - Fix #574: Review fixes for size allocation.
 
 30 November 2021: Wouter
        - Fix to remove git tracking and ci information from release tarballs.
index dd7c81dc73f1100a38980fecd7c4257dceaf8e7f..34c7d11bca0a7b13f2178b809e30c8a1b286c150 100644 (file)
@@ -342,7 +342,7 @@ interfacechecks(struct config_file* cfg)
        if(cfg->num_ifs != 0) {
                resif = (char***)calloc(cfg->num_ifs, sizeof(char**));
                if(!resif) fatal_exit("malloc failure");
-               num_resif = (int*)calloc(cfg->num_ifs, sizeof(int*));
+               num_resif = (int*)calloc(cfg->num_ifs, sizeof(int));
                if(!num_resif) fatal_exit("malloc failure");
        }
        for(i=0; i<cfg->num_ifs; i++) {