Commit 85e2ac57 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

fix: update: update SERVFAILs if serial decrements

parent 1e1c9937
...@@ -514,11 +514,12 @@ static int set_new_soa(zone_update_t *update, unsigned serial_policy) ...@@ -514,11 +514,12 @@ static int set_new_soa(zone_update_t *update, unsigned serial_policy)
log_zone_warning(update->zone->name, "updated serial is lower " log_zone_warning(update->zone->name, "updated serial is lower "
"than current, serial %u -> %u", "than current, serial %u -> %u",
old_serial, new_serial); old_serial, new_serial);
} else {
knot_soa_serial_set(&soa_cpy->rrs, new_serial); knot_soa_serial_set(&soa_cpy->rrs, new_serial);
ret = zone_update_add(update, soa_cpy); ret = zone_update_add(update, soa_cpy);
knot_rrset_free(&soa_cpy, NULL); knot_rrset_free(&soa_cpy, NULL);
return ret; return ret;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment