Skip to content
Snippets Groups Projects
Commit 11161a5b authored by Daniel Salzman's avatar Daniel Salzman
Browse files

ajust: mute false-positive gcc warning 'argument to variable-length array may be too large'

parent 8dec15b0
No related branches found
No related tags found
No related merge requests found
Pipeline #65360 passed
......@@ -89,8 +89,8 @@ int adjust_cb_wildcard_nsec3(zone_node_t *node, adjust_ctx_t *ctx)
zone_tree_insert(ctx->changed_nodes, &node);
}
assert(wildcard_size > 2);
knot_dname_t wildcard[wildcard_size];
assert(wildcard_size > 2);
memcpy(wildcard, "\x01""*", 2);
memcpy(wildcard + 2, node->owner, wildcard_size - 2);
return knot_create_nsec3_owner(node->nsec3_wildcard_name, wildcard_nsec3,
......
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