From 5fe66a90ca54dcc7c43f2e4bb08ff4f283ed63bc Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 29 Mar 2000 19:01:47 +0000 Subject: [PATCH] axfr_rrstream_first() didn't check the result code of db_rr_iterator_first(), possibly causing an assertion to be triggered later. --- bin/named/xfrout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/named/xfrout.c b/bin/named/xfrout.c index 91800a30df..3a5ca17281 100644 --- a/bin/named/xfrout.c +++ b/bin/named/xfrout.c @@ -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 @@ -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;