summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/dns/tsig.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-02-24 17:44:44 +0000
committerflorian <florian@openbsd.org>2020-02-24 17:44:44 +0000
commita5525167054636a82bee514483e4960c1cecdefe (patch)
treeec7dce89c36be06e583609c296f9491c2c9c2717 /usr.bin/dig/lib/dns/tsig.c
parentWe only need to free cname, ns, soa and tsig structs. (diff)
downloadwireguard-openbsd-a5525167054636a82bee514483e4960c1cecdefe.tar.xz
wireguard-openbsd-a5525167054636a82bee514483e4960c1cecdefe.zip
We only need to fill a wire format buffer from soa and tsig structs.
OK jsg
Diffstat (limited to 'usr.bin/dig/lib/dns/tsig.c')
-rw-r--r--usr.bin/dig/lib/dns/tsig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dig/lib/dns/tsig.c b/usr.bin/dig/lib/dns/tsig.c
index 6e31954509b..e3a42620cc4 100644
--- a/usr.bin/dig/lib/dns/tsig.c
+++ b/usr.bin/dig/lib/dns/tsig.c
@@ -15,7 +15,7 @@
*/
/*
- * $Id: tsig.c,v 1.10 2020/02/24 17:43:52 florian Exp $
+ * $Id: tsig.c,v 1.11 2020/02/24 17:44:44 florian Exp $
*/
/*! \file */
@@ -639,8 +639,8 @@ dns_tsig_sign(dns_message_t *msg) {
ret = isc_buffer_allocate(&dynbuf, 512);
if (ret != ISC_R_SUCCESS)
goto cleanup_rdata;
- ret = dns_rdata_fromstruct(rdata, dns_rdataclass_any,
- dns_rdatatype_tsig, &tsig, dynbuf);
+ ret = dns_rdata_fromstruct_tsig(rdata, dns_rdataclass_any,
+ dns_rdatatype_tsig, &tsig, dynbuf);
if (ret != ISC_R_SUCCESS)
goto cleanup_dynbuf;