AuthZoneManager: fixed issue in SaveZoneFileInternal() to prevent generating empty zone file.

This commit is contained in:
Shreyas Zare
2024-06-15 19:30:37 +05:30
parent 695e1f2feb
commit 5a12bbb231

View File

@@ -799,6 +799,9 @@ namespace DnsServerCore.Dns.ZoneManagers
//serialize zone
WriteZoneTo(zoneName, mS);
if (mS.Position == 0)
return; //zone was not found
//write to zone file
mS.Position = 0;