mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 01:24:46 -04:00
add REQUIREs
This commit is contained in:
parent
3806b4e01e
commit
f9f2e770a9
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue