mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
3154. [bug] Attempting to print an empty rdataset could trigger
an assert. [RT #25452]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: masterdump.c,v 1.108 2011/06/08 22:13:50 each Exp $ */
|
||||
/* $Id: masterdump.c,v 1.109 2011/09/07 19:11:13 each Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -419,12 +419,11 @@ rdataset_totext(dns_rdataset_t *rdataset,
|
||||
|
||||
rdataset->attributes |= DNS_RDATASETATTR_LOADORDER;
|
||||
result = dns_rdataset_first(rdataset);
|
||||
REQUIRE(result == ISC_R_SUCCESS);
|
||||
|
||||
current_ttl = ctx->current_ttl;
|
||||
current_ttl_valid = ctx->current_ttl_valid;
|
||||
|
||||
do {
|
||||
while (result == ISC_R_SUCCESS) {
|
||||
column = 0;
|
||||
|
||||
/*
|
||||
@@ -550,7 +549,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
|
||||
|
||||
first = ISC_FALSE;
|
||||
result = dns_rdataset_next(rdataset);
|
||||
} while (result == ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
if (result != ISC_R_NOMORE)
|
||||
return (result);
|
||||
|
Reference in New Issue
Block a user