From 3a16668468060842e847ea6556e80e1405d35cd6 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 10 Nov 2000 00:25:46 +0000 Subject: [PATCH] fix a few minor problems in the unknown rrtype support. --- lib/dns/rdata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index 74b51c5aed..5e09945eec 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.c,v 1.120 2000/11/09 23:54:59 bwelling Exp $ */ +/* $Id: rdata.c,v 1.121 2000/11/10 00:25:46 bwelling Exp $ */ #include #include @@ -533,7 +533,7 @@ dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx, return (result); } -isc_result_t +static isc_result_t rdata_valid(isc_buffer_t *buf, dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_mem_t *mctx) { @@ -547,8 +547,8 @@ rdata_valid(isc_buffer_t *buf, dns_rdataclass_t rdclass, dns_rdatatype_t type, result = isc_buffer_allocate(mctx, &tbuf, isc_buffer_length(buf)); if (result == ISC_R_SUCCESS) { result = dns_rdata_fromwire(&rdata, rdclass, type, buf, &dctx, - ISC_FALSE, &tbuf); - isc_buffer_free(tbuf); + ISC_FALSE, tbuf); + isc_buffer_free(&tbuf); } dns_decompress_invalidate(&dctx);