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

validator nitpick: remove a useless dead store

Discovered by clang scan.
parent d296e36e
No related branches found
No related tags found
1 merge request!453Merge tag 'v1.5.2', bringing security fixes
......@@ -677,7 +677,6 @@ int kr_nsec3_no_data(const knot_pkt_t *pkt, knot_section_t section_id,
int kr_nsec3_ref_to_unsigned(const knot_pkt_t *pkt)
{
int ret = kr_error(EINVAL);
int flags = 0;
uint8_t *bm = NULL;
uint16_t bm_size = 0;
......@@ -739,8 +738,8 @@ int kr_nsec3_ref_to_unsigned(const knot_pkt_t *pkt)
*/
const knot_dname_t *encloser_name = NULL;
const knot_rrset_t *covering_next_nsec3 = NULL;
ret = closest_encloser_proof(pkt, KNOT_AUTHORITY, ns->owner, &encloser_name,
NULL, &covering_next_nsec3);
int ret = closest_encloser_proof(pkt, KNOT_AUTHORITY, ns->owner,
&encloser_name, NULL, &covering_next_nsec3);
if (ret != 0) {
return kr_error(EINVAL);
}
......
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