diff options
| author | 2020-02-24 17:45:25 +0000 | |
|---|---|---|
| committer | 2020-02-24 17:45:25 +0000 | |
| commit | ee21177a5b213b2a5b2979caf32f5a2642ca4f1c (patch) | |
| tree | f5e22756492bb51ddc1553c225d9a61efcf89a67 /usr.bin/dig/lib/dns/rdata/generic/mb_7.c | |
| parent | We only need to fill a wire format buffer from soa and tsig structs. (diff) | |
| download | wireguard-openbsd-ee21177a5b213b2a5b2979caf32f5a2642ca4f1c.tar.xz wireguard-openbsd-ee21177a5b213b2a5b2979caf32f5a2642ca4f1c.zip | |
We only need to create cname, ns, soa and tsig structs.
OK jsg
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/mb_7.c')
| -rw-r--r-- | usr.bin/dig/lib/dns/rdata/generic/mb_7.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/mb_7.c b/usr.bin/dig/lib/dns/rdata/generic/mb_7.c index ef1a0b1d765..535a04e0bc3 100644 --- a/usr.bin/dig/lib/dns/rdata/generic/mb_7.c +++ b/usr.bin/dig/lib/dns/rdata/generic/mb_7.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: mb_7.c,v 1.7 2020/02/24 17:44:45 florian Exp $ */ +/* $Id: mb_7.c,v 1.8 2020/02/24 17:45:26 florian Exp $ */ /* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */ @@ -79,27 +79,6 @@ towire_mb(ARGS_TOWIRE) { -static inline isc_result_t -tostruct_mb(ARGS_TOSTRUCT) { - isc_region_t region; - dns_rdata_mb_t *mb = target; - dns_name_t name; - - REQUIRE(rdata->type == dns_rdatatype_mb); - REQUIRE(target != NULL); - REQUIRE(rdata->length != 0); - - mb->common.rdclass = rdata->rdclass; - mb->common.rdtype = rdata->type; - ISC_LINK_INIT(&mb->common, link); - - dns_name_init(&name, NULL); - dns_rdata_toregion(rdata, ®ion); - dns_name_fromregion(&name, ®ion); - dns_name_init(&mb->mb, NULL); - RETERR(name_duporclone(&name, &mb->mb)); - return (ISC_R_SUCCESS); -} |
