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)
log_zone_warning(update->zone->name, "updated serial is lower "
"than current, serial %u -> %u",
old_serial, new_serial);
}
knot_soa_serial_set(&soa_cpy->rrs, new_serial);
ret = KNOT_ESOAINVAL;
} else {
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);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment