2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1206. [bug] dns_name_downcase() enforce requirement that

target != NULL or name->buffer != NULL.
This commit is contained in:
Mark Andrews 2002-05-28 03:39:46 +00:00
parent f11c81f4fe
commit d8d489cd8e
2 changed files with 6 additions and 2 deletions

View File

@ -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 1205. [func] lwres: probe the system to see what address families
are currently in use. are currently in use.

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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> #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; ndata = source->ndata;
} else { } else {
REQUIRE(BINDABLE(name)); REQUIRE(BINDABLE(name));
if (target == NULL && name->buffer != NULL) { REQUIRE(target != NULL || name->buffer != NULL);
if (target == NULL) {
target = name->buffer; target = name->buffer;
isc_buffer_clear(name->buffer); isc_buffer_clear(name->buffer);
} }