mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-03-25 15:00:02 +00:00
AuthZoneManager: fixed issue in SaveZoneFileInternal() to prevent generating empty zone file.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user