]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add REQUIREs
authorBrian Wellington <source@isc.org>
Thu, 21 Feb 2002 23:51:49 +0000 (23:51 +0000)
committerBrian Wellington <source@isc.org>
Thu, 21 Feb 2002 23:51:49 +0000 (23:51 +0000)
lib/dns/rdataslab.c

index 7ffb722046519edc872ba60a9eb123aff1e17167..132d9281fefd00e96c0a61bd2b953f1e0295589d 100644 (file)
@@ -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 <config.h>
 
@@ -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;