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

getter cleanup: Fixed code that relied on setter property.

parent ed811e2f
Branches
Tags
No related merge requests found
......@@ -1132,7 +1132,9 @@ static int knot_zone_contents_adjust_nodes(knot_zone_tree_t *nodes,
hattrie_build_index(nodes);
int result = knot_zone_tree_apply_inorder(nodes, callback, adjust_arg);
adjust_arg->first_node->prev = adjust_arg->previous_node;
if (adjust_arg->first_node) {
adjust_arg->first_node->prev = adjust_arg->previous_node;
}
return result;
}
......
......@@ -657,9 +657,6 @@ static int knot_pkt_rr_from_wire(const uint8_t *wire, size_t *pos,
*pos += KNOT_RR_HEADER_SIZE;
dbg_packet_verb("%s: read type %u, class %u, ttl %u, rdlength %u\n",
__func__, rrset->type, rrset->rclass, ttl, rdlength);
if (size - *pos < rdlength) {
dbg_packet("%s: not enough data to parse RDATA\n", __func__);
knot_dname_free(&owner, mm);
......
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