mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
additional data support
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.c,v 1.14 1999/08/02 22:18:00 halley Exp $ */
|
||||
/* $Id: ns_2.c,v 1.15 1999/08/03 01:21:23 halley Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NS_2_C
|
||||
#define RDATA_GENERIC_NS_2_C
|
||||
@@ -172,12 +172,16 @@ static dns_result_t
|
||||
additionaldata_ns(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||
void *arg)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t region;
|
||||
|
||||
REQUIRE(rdata->type == 2);
|
||||
|
||||
(void)add;
|
||||
(void)arg;
|
||||
dns_name_init(&name, NULL);
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
dns_name_fromregion(&name, ®ion);
|
||||
|
||||
return (DNS_R_SUCCESS);
|
||||
return ((add)(arg, &name, dns_rdatatype_a));
|
||||
}
|
||||
|
||||
#endif /* RDATA_GENERIC_NS_2_C */
|
||||
|
Reference in New Issue
Block a user