mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-25 16:18:03 -04:00
optimization - if the compression table for a message is empty, don't
hash and look up each label.
This commit is contained in:
parent
a771e5c797
commit
64e7f8541d
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: compress.c,v 1.45 2001/02/09 02:13:06 bwelling Exp $ */
|
||||
/* $Id: compress.c,v 1.46 2001/02/10 01:18:19 bwelling Exp $ */
|
||||
|
||||
#define DNS_NAME_USEINLINE 1
|
||||
|
||||
|
|
@ -125,6 +125,9 @@ dns_compress_findglobal(dns_compress_t *cctx, dns_name_t *name,
|
|||
REQUIRE(dns_name_isabsolute(name) == ISC_TRUE);
|
||||
REQUIRE(offset != NULL);
|
||||
|
||||
if (cctx->count == 0)
|
||||
return (ISC_FALSE);
|
||||
|
||||
labels = dns_name_countlabels(name);
|
||||
INSIST(labels > 0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue