Skip to content
Snippets Groups Projects
Verified Commit a65fdde1 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

cache nitpick: avoid an unused value and recomputation

It's never been used apparently, since its introduction in 5b288464.
This commit doesn't depend on knot being 2.7 at all.
parent 66691ef5
Branches
Tags
1 merge request!630knot 2.7
......@@ -90,12 +90,13 @@ static knot_db_val_t key_NSEC3_name(struct key *k, const knot_dname_t *name,
name_len = knot_dname_to_wire(buf + 2, name, sizeof(buf) - 2);
if (name_len < 0) return VAL_EMPTY; /* wants wildcard but doesn't fit */
name = buf;
name_len += 2;
} else {
name_len = knot_dname_size(name);
}
/* Append the NSEC3 hash. */
const dnssec_binary_t dname = {
.size = knot_dname_size(name),
.size = name_len,
.data = (uint8_t *)/*const-cast*/name,
};
......
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