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

axfr_rrstream_first() didn't check the result code of

db_rr_iterator_first(), possibly causing an assertion to be triggered
later.
This commit is contained in:
Bob Halley
2000-03-29 19:01:47 +00:00
parent 01e320c4fb
commit 5fe66a90ca

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrout.c,v 1.49 2000/03/23 00:54:44 gson Exp $ */
/* $Id: xfrout.c,v 1.50 2000/03/29 19:01:47 halley Exp $ */
#include <config.h>
@@ -454,6 +454,8 @@ axfr_rrstream_first(rrstream_t *rs)
axfr_rrstream_t *s = (axfr_rrstream_t *) rs;
isc_result_t result;
result = db_rr_iterator_first(&s->it);
if (result != DNS_R_SUCCESS)
return (result);
/* Skip SOA records. */
for (;;) {
dns_name_t *name_dummy = NULL;