From 94a94fd8c840a7d68fc09c5ae36c316bbf91fd8a Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 3 Jul 2024 15:49:13 +0200 Subject: [PATCH] - Fix to use modstack_init in zonemd unit test. --- doc/Changelog | 1 + testcode/unitzonemd.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 0cab2de33..2fd03c09a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -6,6 +6,7 @@ 3 July 2024: Wouter - Fix #144: Port ipset to BSD pf tables. - Add unit test skip files and bison and flex output to gitignore. + - Fix to use modstack_init in zonemd unit test. 2 July 2024: Wouter - Fix to remove unused include from the readzone test program. diff --git a/testcode/unitzonemd.c b/testcode/unitzonemd.c index 81d92c102..bf130df5a 100644 --- a/testcode/unitzonemd.c +++ b/testcode/unitzonemd.c @@ -256,7 +256,6 @@ static void zonemd_verify_test(char* zname, char* zfile, char* tastr, struct auth_zone* z; /* setup test harness */ - memset(&mods, 0, sizeof(mods)); memset(&env, 0, sizeof(env)); env.scratch = regional_create(); if(!env.scratch) @@ -287,7 +286,7 @@ static void zonemd_verify_test(char* zname, char* zfile, char* tastr, env.auth_zones = auth_zones_create(); if(!env.auth_zones) fatal_exit("out of memory"); - memset(&mods, 0, sizeof(mods)); + modstack_init(&mods); if(!modstack_call_startup(&mods, env.cfg->module_conf, &env)) fatal_exit("could not modstack_startup"); if(!modstack_call_init(&mods, env.cfg->module_conf, &env)) -- 2.47.2