diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:45:27 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:45:27 +0000 |
commit | 0ceb7b59c86af9efa7f1400fb460d85dc4d483b6 (patch) | |
tree | 0955b086dc41c7e5ab8f5c1b80956a023ada7a4c /usr.bin/dig/nslookup.c | |
parent | eabaa59838ffe0eb651c0f95336c23068c9b3e74 (diff) |
We only need to create cname, ns, soa and tsig structs.
OK jsg
Diffstat (limited to 'usr.bin/dig/nslookup.c')
-rw-r--r-- | usr.bin/dig/nslookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/dig/nslookup.c b/usr.bin/dig/nslookup.c index 5c5094a1a9f..86ec50794bd 100644 --- a/usr.bin/dig/nslookup.c +++ b/usr.bin/dig/nslookup.c @@ -162,8 +162,8 @@ printsoa(dns_rdata_t *rdata) { isc_result_t result; char namebuf[DNS_NAME_FORMATSIZE]; - result = dns_rdata_tostruct(rdata, &soa); - check_result(result, "dns_rdata_tostruct"); + result = dns_rdata_tostruct_soa(rdata, &soa); + check_result(result, "dns_rdata_tostruct_soa"); dns_name_format(&soa.origin, namebuf, sizeof(namebuf)); printf("\torigin = %s\n", namebuf); |