2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

reordered some statements for clarity

This commit is contained in:
Andreas Gustafsson
2000-09-01 16:37:30 +00:00
parent 043ce260f7
commit 1b088f4680

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rdataslab.c,v 1.16 2000/09/01 01:35:19 bwelling Exp $ */
/* $Id: rdataslab.c,v 1.17 2000/09/01 16:37:30 gson Exp $ */
#include <config.h>
@@ -57,9 +57,6 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
unsigned int nalloc;
unsigned int i;
result = dns_rdataset_first(rdataset);
REQUIRE(result == ISC_R_SUCCESS);
buflen = reservelen + 2;
nalloc = dns_rdataset_count(rdataset);
@@ -72,6 +69,8 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
/*
* Save all of the rdata members into an array.
*/
result = dns_rdataset_first(rdataset);
INSIST(result == ISC_R_SUCCESS);
for (i = 0; i < nalloc; i++) {
INSIST(result == ISC_R_SUCCESS);
dns_rdataset_current(rdataset, &rdatas[i]);