Skip to content
Snippets Groups Projects
Commit 36bdc514 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

new_node: fixed LE compilation error + dnssec_nsec3 test fixed.

parent f6f67fcf
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,10 @@ int main(int argc, char *argv[])
};
rrset = knot_rrset_new(NULL, KNOT_RRTYPE_NSEC3PARAM, KNOT_CLASS_IN, NULL);
result = knot_rrset_add_rr(rrset, rdata, sizeof(rdata), 0, NULL);
if (result == KNOT_EOK) {
result = knot_nsec3_params_from_wire(&params, rrset);
result = knot_nsec3_params_from_wire(&params, &rrset->rrs);
}
is_int(1, params.algorithm, "parse algorithm from wire");
......
LE
/* Copyright (C) 2013 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
......
......@@ -53,7 +53,7 @@ void create_root_zone(server_t *server, mm_ctx_t *mm)
KNOT_RRTYPE_SOA, KNOT_CLASS_IN,
NULL);
knot_rrset_add_rr(soa_rrset, SOA_RDATA, SOA_RDLEN, 7200, NULL);
knot_node_add_rrset(root->contents->apex, soa_rrset, NULL);
knot_node_add_rrset(root->contents->apex, soa_rrset);
/* Bake the zone. */
knot_node_t *first_nsec3 = NULL, *last_nsec3 = NULL;
......
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