Skip to content

Instantly share code, notes, and snippets.

@mimuret
Created April 5, 2017 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mimuret/5924683e2719769fa55e540fbbf14634 to your computer and use it in GitHub Desktop.
Save mimuret/5924683e2719769fa55e540fbbf14634 to your computer and use it in GitHub Desktop.
diff --git a/xfrd.c b/xfrd.c
index 810ee3e..1c03750 100644
--- a/xfrd.c
+++ b/xfrd.c
@@ -1892,13 +1892,13 @@ xfrd_parse_received_xfr_packet(xfrd_zone_type* zone, buffer_type* packet,
zone->soa_disk_acquired = xfrd_time();
if(zone->soa_nsd.serial == soa->serial)
zone->soa_nsd_acquired = xfrd_time();
+ xfrd_set_zone_state(zone, xfrd_zone_ok);
+ DEBUG(DEBUG_XFRD,1, (LOG_INFO, "xfrd: zone %s is ok",
+ zone->apex_str));
if(zone->zone_options->pattern->multi_master_check) {
region_destroy(tempregion);
return xfrd_packet_drop;
}
- xfrd_set_zone_state(zone, xfrd_zone_ok);
- DEBUG(DEBUG_XFRD,1, (LOG_INFO, "xfrd: zone %s is ok",
- zone->apex_str));
if(zone->soa_notified_acquired == 0) {
/* not notified or anything, so stop asking around */
zone->round_num = -1; /* next try start a new round */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment