mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 04:10:00 -04:00
fclose origfile and zonefile
This commit is contained in:
parent
bbaff4d80f
commit
455bb23236
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue