Skip to content
Snippets Groups Projects
Commit a5cdcf2b authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Redundant check, static analysis complains.

parent ad01396a
No related branches found
No related tags found
No related merge requests found
......@@ -336,7 +336,7 @@ static int knot_rrset_rdata_to_wire_one(const knot_rrset_t *rrset,
return KNOT_ESPACE;
}
/* Store first dname compression hint. */
if (compr && !knot_pkt_compr_hint(compr->rrinfo, hint_id)) {
if (!knot_pkt_compr_hint(compr->rrinfo, hint_id)) {
knot_pkt_compr_hint_set(compr->rrinfo, hint_id, compr->wire_pos, ret);
}
assert(ret + size + rdlength <= max_size);
......
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