Commit 97095b4f authored by Libor Peltan's avatar Libor Peltan

fix: update: update SERVFAILs if serial decrements

parent d9bca513
......@@ -544,11 +544,12 @@ static int set_new_soa(zone_update_t *update, unsigned serial_policy)
log_zone_warning(update->zone->name, "updated SOA 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