Skip to content
Snippets Groups Projects
Commit 5016b89e authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Coverity #1141005 #1141006

parent e055dc0b
No related branches found
No related tags found
No related merge requests found
......@@ -983,7 +983,6 @@ static uint32_t zones_next_serial(knot_zone_t *zone)
assert(zone);
uint32_t old_serial = knot_zone_serial(knot_zone_contents(zone));
assert(old_serial >= 0);
uint32_t new_serial;
switch (zones_serial_policy(zone)) {
......
......@@ -1107,7 +1107,7 @@ int knot_zone_sign_update_soa(const knot_rrset_t *soa,
}
if (policy->soa_up == KNOT_SOA_SERIAL_UPDATE) {
assert(new_serial >= 0);
;
} else {
assert(policy->soa_up == KNOT_SOA_SERIAL_KEEP);
new_serial = serial;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment