- Fix #574: Review fixes for it.

This commit is contained in:
W.C.A. Wijngaards 2021-11-29 15:13:14 +01:00
parent dcad9d5863
commit b48d6760fc
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@
- Fix to make python module opt_list use opt_list_in. - Fix to make python module opt_list use opt_list_in.
- Fix #574: unbound-checkconf reports fatal error if interface names - Fix #574: unbound-checkconf reports fatal error if interface names
are used as value for interfaces: are used as value for interfaces:
- Fix #574: Review fixes for it.
15 November 2021: Tom 15 November 2021: Tom
- Improve EDNS option handling, now also works for synthesised - Improve EDNS option handling, now also works for synthesised

View file

@ -54,6 +54,7 @@
#include "iterator/iter_hints.h" #include "iterator/iter_hints.h"
#include "validator/validator.h" #include "validator/validator.h"
#include "services/localzone.h" #include "services/localzone.h"
#include "services/listen_dnsport.h"
#include "services/view.h" #include "services/view.h"
#include "services/authzone.h" #include "services/authzone.h"
#include "respip/respip.h" #include "respip/respip.h"
@ -340,7 +341,9 @@ interfacechecks(struct config_file* cfg)
if(cfg->num_ifs != 0) { if(cfg->num_ifs != 0) {
resif = (char***)calloc(cfg->num_ifs, sizeof(char**)); 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++) { for(i=0; i<cfg->num_ifs; i++) {
/* search for duplicates in IP or ifname arguments */ /* search for duplicates in IP or ifname arguments */