From 28bc4ae4d9cf9f34f9dcd99da1c89bdb56a2bd38 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 6 Apr 2016 10:07:48 +0200 Subject: Add unit test for validation, from dnssecport:handle_call(). - The port now returns the RRset (DS, chain, trust root and all RRSIG's). This in preparatino for when this data will be normalised. - dnssecport decodes and encodes DNS data. - v1 stores the DS RR in the leaf and the rest, including the DS RRSIG, in the chain. --- tools/dnssec/dns-text2wire.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/dnssec/dns-text2wire.c b/tools/dnssec/dns-text2wire.c index 99d418f..f15ae19 100644 --- a/tools/dnssec/dns-text2wire.c +++ b/tools/dnssec/dns-text2wire.c @@ -38,6 +38,7 @@ main(int argc, char *argv[]) r = getdns_rr_dict2wire(rr, &buf, &buf_len); assert(!r); ssize_t n = write(1, buf, buf_len); + free(buf); assert(n == buf_len); } return 0; -- cgit v1.1