diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:44:46 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:44:46 +0000 |
commit | eabaa59838ffe0eb651c0f95336c23068c9b3e74 (patch) | |
tree | f6612ddd9128af33426138276827bdac242ef27e /usr.bin/dig/dighost.c | |
parent | b1a99024f5d5599fb958f56e3f88c01618140317 (diff) |
We only need to fill a wire format buffer from soa and tsig structs.
OK jsg
Diffstat (limited to 'usr.bin/dig/dighost.c')
-rw-r--r-- | usr.bin/dig/dighost.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dig/dighost.c b/usr.bin/dig/dighost.c index 9ad9d15316f..a9677551334 100644 --- a/usr.bin/dig/dighost.c +++ b/usr.bin/dig/dighost.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.19 2020/02/24 17:43:52 florian Exp $ */ +/* $Id: dighost.c,v 1.20 2020/02/24 17:44:44 florian Exp $ */ /*! \file * \note @@ -1894,10 +1894,10 @@ insert_soa(dig_lookup_t *lookup) { result = dns_message_gettemprdata(lookup->sendmsg, &rdata); check_result(result, "dns_message_gettemprdata"); - result = dns_rdata_fromstruct(rdata, lookup->rdclass, + result = dns_rdata_fromstruct_soa(rdata, lookup->rdclass, dns_rdatatype_soa, &soa, &lookup->rdatabuf); - check_result(result, "isc_rdata_fromstruct"); + check_result(result, "isc_rdata_fromstruct_soa"); result = dns_message_gettemprdatalist(lookup->sendmsg, &rdatalist); check_result(result, "dns_message_gettemprdatalist"); |