diff options
| author | Doug Barton <dougb@FreeBSD.org> | 2012-04-04 23:11:25 +0000 | 
|---|---|---|
| committer | Doug Barton <dougb@FreeBSD.org> | 2012-04-04 23:11:25 +0000 | 
| commit | 42d3eba523963ab015ac451eeea0788b11631c94 (patch) | |
| tree | d6eb268f26af23cc29cceb581dd5468a2cfef052 /lib/dns/sdlz.c | |
| parent | 3939884dc90db099f5601bd7c27d39acf7a8c731 (diff) | |
Diffstat (limited to 'lib/dns/sdlz.c')
| -rw-r--r-- | lib/dns/sdlz.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lib/dns/sdlz.c b/lib/dns/sdlz.c index ba61872163766..870e981a29ad9 100644 --- a/lib/dns/sdlz.c +++ b/lib/dns/sdlz.c @@ -1,5 +1,5 @@  /* - * Portions Copyright (C) 2005-2011  Internet Systems Consortium, Inc. ("ISC") + * Portions Copyright (C) 2005-2012  Internet Systems Consortium, Inc. ("ISC")   * Portions Copyright (C) 1999-2001  Internet Software Consortium.   *   * Permission to use, copy, modify, and/or distribute this software for any @@ -50,7 +50,7 @@   * USE OR PERFORMANCE OF THIS SOFTWARE.   */ -/* $Id: sdlz.c,v 1.31.8.2 2011-03-21 19:53:34 each Exp $ */ +/* $Id$ */  /*! \file */ @@ -1836,7 +1836,11 @@ dns_sdlz_putrr(dns_sdlzlookup_t *lookup, const char *type, dns_ttl_t ttl,  					    &lookup->callbacks);  		if (result != ISC_R_SUCCESS)  			isc_buffer_free(&rdatabuf); +		if (size >= 65535) +			break;  		size *= 2; +		if (size >= 65535) +			size = 65535;  	} while (result == ISC_R_NOSPACE);  	if (result != ISC_R_SUCCESS) | 
