Commit e4ae0118 authored by Mark Karpilovskij's avatar Mark Karpilovskij

zone-update: Coverity fixes

parent 25bcacd5
......@@ -663,7 +663,7 @@ changeset_t *changeset_clone(const changeset_t *ch)
return NULL;
}
changeset_t *res = changeset_new(ch->soa_from->owner);
changeset_t *res = changeset_new(ch->add->apex->owner);
if (res == NULL) {
return NULL;
}
......
......@@ -154,14 +154,16 @@ int zone_update_from_differences(zone_update_t *update, zone_t *zone, zone_conte
return ret;
}
// True if nonempty changes were made but the serial
// remained the same and has to be incremented.
bool diff_semcheck = (ret == KNOT_ESEMCHECK);
ret = init_base(update, zone, old_cont, flags);
if (ret != KNOT_EOK) {
changeset_clear(&diff);
return ret;
}
bool diff_semcheck = (ret == KNOT_ESEMCHECK);
ret = zone_update_apply_changeset(update, &diff);
changeset_clear(&diff);
if (ret != KNOT_EOK) {
......
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