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

review: invalid order of calloc arguments

parent 4ff58893
No related branches found
No related tags found
1 merge request!578EDNS Client Subnet API
......@@ -768,7 +768,7 @@ static int opt_client(const char *arg, void *query)
const char *arg_end = arg + arg_len;
size_t addr_len = 0;
knot_edns_client_subnet_t *subnet = calloc(sizeof(*subnet), 1);
knot_edns_client_subnet_t *subnet = calloc(1, sizeof(*subnet));
if (subnet == NULL) {
return KNOT_ENOMEM;
}
......
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