diff options
| author | 2020-02-24 17:44:44 +0000 | |
|---|---|---|
| committer | 2020-02-24 17:44:44 +0000 | |
| commit | a5525167054636a82bee514483e4960c1cecdefe (patch) | |
| tree | ec7dce89c36be06e583609c296f9491c2c9c2717 /usr.bin/dig/lib/dns/tsig.c | |
| parent | We only need to free cname, ns, soa and tsig structs. (diff) | |
| download | wireguard-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.c | 6 |
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; |
