Skip to content
Snippets Groups Projects
Commit 950b9168 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/dnssec: bad condition

parent f68b5f93
Branches
Tags
No related merge requests found
......@@ -117,7 +117,7 @@ static int name_error_response_check_rr(int *flags, const knot_rrset_t *nsec,
/* Try to find parent wildcard that is proved by this NSEC. */
uint8_t namebuf[KNOT_DNAME_MAXLEN];
int ret = knot_dname_to_wire(namebuf, name, sizeof(namebuf));
if (ret != 0)
if (ret < 0)
return ret;
knot_dname_t *ptr = namebuf;
while (ptr[0]) {
......
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