From: George Thessalonikefs Date: Wed, 1 Dec 2021 03:31:58 +0000 (+0100) Subject: - Fix #574: Review fixes for size allocation. X-Git-Tag: release-1.14.0rc1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31bac7d5caef399bef165ab1641a53b580652ef8;p=thirdparty%2Funbound.git - Fix #574: Review fixes for size allocation. --- diff --git a/doc/Changelog b/doc/Changelog index 009541447..c5ed72778 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/smallapp/unbound-checkconf.c b/smallapp/unbound-checkconf.c index dd7c81dc7..34c7d11bc 100644 --- a/smallapp/unbound-checkconf.c +++ b/smallapp/unbound-checkconf.c @@ -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; inum_ifs; i++) {