From f9f2e770a992cb0ed2234b2f985162273059c6d3 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 21 Feb 2002 23:51:49 +0000 Subject: [PATCH] add REQUIREs --- lib/dns/rdataslab.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c index 7ffb722046..132d9281fe 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;