Lines Matching refs:null
81 dns_rdata_null_t *null = source;
85 REQUIRE(null->common.rdtype == type);
86 REQUIRE(null->common.rdclass == rdclass);
87 REQUIRE(null->data != NULL || null->length == 0);
92 return (mem_tobuffer(target, null->data, null->length));
97 dns_rdata_null_t *null = target;
103 null->common.rdclass = rdata->rdclass;
104 null->common.rdtype = rdata->type;
105 ISC_LINK_INIT(&null->common, link);
108 null->length = r.length;
109 null->data = mem_maybedup(mctx, r.base, r.length);
110 if (null->data == NULL)
113 null->mctx = mctx;
119 dns_rdata_null_t *null = source;
122 REQUIRE(null->common.rdtype == dns_rdatatype_null);
124 if (null->mctx == NULL)
127 if (null->data != NULL)
128 isc_mem_free(null->mctx, null->data);
129 null->mctx = NULL;