Skip to content

Commit

Permalink
- Fix to use modstack_init in zonemd unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 3, 2024
1 parent 36f9d1a commit 94a94fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions testcode/unitzonemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 94a94fd

Please sign in to comment.