Commit cabaeca9 authored by Brian Wellington's avatar Brian Wellington

missing assertion checks

parent e88c4a49
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rdata.c,v 1.145 2001/07/16 03:05:57 marka Exp $ */
/* $Id: rdata.c,v 1.146 2001/07/16 09:48:05 bwelling Exp $ */
#include <config.h>
#include <ctype.h>
......@@ -379,6 +379,8 @@ dns_rdata_init(dns_rdata_t *rdata) {
void
dns_rdata_reset(dns_rdata_t *rdata) {
REQUIRE(rdata != NULL);
REQUIRE(!ISC_LINK_LINKED(rdata, link));
REQUIRE(DNS_RDATA_VALIDFLAGS(rdata));
......@@ -396,6 +398,9 @@ dns_rdata_reset(dns_rdata_t *rdata) {
void
dns_rdata_clone(const dns_rdata_t *src, dns_rdata_t *target) {
REQUIRE(src != NULL);
REQUIRE(target != NULL);
REQUIRE(DNS_RDATA_INITIALIZED(target));
REQUIRE(DNS_RDATA_VALIDFLAGS(src));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment