summaryrefslogtreecommitdiffstats
path: root/contrib/bind9/lib/dns/sdlz.c
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2012-04-05 04:29:35 +0000
committerdougb <dougb@FreeBSD.org>2012-04-05 04:29:35 +0000
commit0adb91c0ac8b4cb02cf5b6c0214cfbaed14c3ca7 (patch)
treecf3176c0801c94a4f298353cc450f10cf1aae9c0 /contrib/bind9/lib/dns/sdlz.c
parentcc55f4943b841b3772901d62a327ad4f9edb2c95 (diff)
downloadFreeBSD-src-0adb91c0ac8b4cb02cf5b6c0214cfbaed14c3ca7.zip
FreeBSD-src-0adb91c0ac8b4cb02cf5b6c0214cfbaed14c3ca7.tar.gz
Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes.
Diffstat (limited to 'contrib/bind9/lib/dns/sdlz.c')
-rw-r--r--contrib/bind9/lib/dns/sdlz.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/bind9/lib/dns/sdlz.c b/contrib/bind9/lib/dns/sdlz.c
index ba61872..870e981 100644
--- a/contrib/bind9/lib/dns/sdlz.c
+++ b/contrib/bind9/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)
OpenPOWER on IntegriCloud