mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-01 04:50:50 -05:00
another micro-optimization.
This commit is contained in:
parent
319d2971f1
commit
82ecc44b96
1 changed files with 8 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: compress.c,v 1.46 2001/02/10 01:18:19 bwelling Exp $ */
|
||||
/* $Id: compress.c,v 1.47 2001/02/10 02:55:05 bwelling Exp $ */
|
||||
|
||||
#define DNS_NAME_USEINLINE 1
|
||||
|
||||
|
|
@ -154,8 +154,13 @@ dns_compress_findglobal(dns_compress_t *cctx, dns_name_t *name,
|
|||
if (node == NULL)
|
||||
return (ISC_FALSE);
|
||||
|
||||
dns_name_clone(&tname, suffix);
|
||||
dns_name_getlabelsequence(name, 0, n, prefix);
|
||||
if (n == 0) {
|
||||
dns_name_clone(name, suffix);
|
||||
dns_name_reset(prefix);
|
||||
} else {
|
||||
dns_name_clone(&tname, suffix);
|
||||
dns_name_getlabelsequence(name, 0, n, prefix);
|
||||
}
|
||||
*offset = node->offset;
|
||||
return (ISC_TRUE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue