2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

4718. [func] Avoid seaching for a owner name compression pointer

more than once when writing out a RRset. [RT #45802]
This commit is contained in:
Mark Andrews
2017-09-13 09:24:34 +10:00
parent 25b33bede4
commit 4a258c3c42
4 changed files with 47 additions and 10 deletions

View File

@@ -739,6 +739,9 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source,
isc_result_t
dns_name_towire(const dns_name_t *name, dns_compress_t *cctx,
isc_buffer_t *target);
isc_result_t
dns_name_towire2(const dns_name_t *name, dns_compress_t *cctx,
isc_buffer_t *target, isc_uint16_t *comp_offsetp);
/*%<
* Convert 'name' into wire format, compressing it as specified by the
* compression context 'cctx', and storing the result in 'target'.