]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1206. [bug] dns_name_downcase() enforce requirement that
authorMark Andrews <marka@isc.org>
Tue, 28 May 2002 03:39:46 +0000 (03:39 +0000)
committerMark Andrews <marka@isc.org>
Tue, 28 May 2002 03:39:46 +0000 (03:39 +0000)
                        target != NULL or name->buffer != NULL.

CHANGES
lib/dns/name.c

diff --git a/CHANGES b/CHANGES
index 84e8dc35811ac8dcfb97d99ab466a84c9495f2c4..3e1390f95adf2f46fbea6773e1a869a1fb151092 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1206.  [bug]           dns_name_downcase() enforce requirement that
+                       target != NULL or name->buffer != NULL.
+
 1205.  [func]          lwres: probe the system to see what address families
                        are currently in use.
 
index 86fb4f5fa79248065385940cdd25801d053b9649..1a2545ab6e88108d518f380ce5c107494549021e 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: name.c,v 1.133 2002/03/14 00:36:06 bwelling Exp $ */
+/* $Id: name.c,v 1.134 2002/05/28 03:39:46 marka Exp $ */
 
 #include <config.h>
 
@@ -2075,7 +2075,8 @@ dns_name_downcase(dns_name_t *source, dns_name_t *name, isc_buffer_t *target) {
                ndata = source->ndata;
        } else {
                REQUIRE(BINDABLE(name));
-               if (target == NULL && name->buffer != NULL) {
+               REQUIRE(target != NULL || name->buffer != NULL);
+               if (target == NULL) {
                        target = name->buffer;
                        isc_buffer_clear(name->buffer);
                }