2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Merge branch '519-unclosed-files-in-lib-dns-tests-zt_test-c' into 'master'

Resolve "unclosed files in lib/dns/tests/zt_test.c"

Closes #519

See merge request isc-projects/bind9!736
This commit is contained in:
Mark Andrews
2018-08-30 22:23:23 -04:00

View File

@@ -178,6 +178,7 @@ ATF_TC_BODY(asyncload_zone, tc) {
origfile = fopen("./testdata/zt/zone1.db", "r+b");
ATF_CHECK(origfile != NULL);
n = fread(buf, 1, 4096, origfile);
fclose(origfile);
fwrite(buf, 1, n, zonefile);
fflush(zonefile);
@@ -203,6 +204,7 @@ ATF_TC_BODY(asyncload_zone, tc) {
*/
fprintf(zonefile, "\nb in b 1.2.3.4\n");
fflush(zonefile);
fclose(zonefile);
args.arg1 = zone;
args.arg2 = &done;