Skip to content
Snippets Groups Projects
Commit a69e9607 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

EDNS client subnet: fix condition on prefix length check

parent 8e5cb07a
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ int knot_edns_client_subnet_create(const knot_addr_family_t family,
return KNOT_ESPACE;
}
if (addr_len > addr_prefix_len) {
if (addr_prefix_len > addr_len) {
return KNOT_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