From: Brian Wellington Date: Thu, 21 Feb 2002 23:51:49 +0000 (+0000) Subject: add REQUIREs X-Git-Tag: v9.0.1^2~8498 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=f9f2e770a992cb0ed2234b2f985162273059c6d3;p=thirdparty%2Fbind9.git add REQUIREs --- diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c index 7ffb7220465..132d9281fef 100644 --- a/lib/dns/rdataslab.c +++ b/lib/dns/rdataslab.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdataslab.c,v 1.30 2002/02/20 22:57:12 bwelling Exp $ */ +/* $Id: rdataslab.c,v 1.31 2002/02/21 23:51:49 bwelling Exp $ */ #include @@ -248,6 +248,9 @@ dns_rdataslab_tordataset(unsigned char *slab, unsigned int reservelen, dns_rdatatype_t covers, dns_ttl_t ttl, dns_rdataset_t *rdataset) { + REQUIRE(slab != NULL); + REQUIRE(!dns_rdataset_isassociated(rdataset)); + rdataset->methods = &rdataset_methods; rdataset->rdclass = rdclass; rdataset->type = rdtype;