mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +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:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -454,6 +454,8 @@ axfr_rrstream_first(rrstream_t *rs)
|
|||||||
axfr_rrstream_t *s = (axfr_rrstream_t *) rs;
|
axfr_rrstream_t *s = (axfr_rrstream_t *) rs;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
result = db_rr_iterator_first(&s->it);
|
result = db_rr_iterator_first(&s->it);
|
||||||
|
if (result != DNS_R_SUCCESS)
|
||||||
|
return (result);
|
||||||
/* Skip SOA records. */
|
/* Skip SOA records. */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
dns_name_t *name_dummy = NULL;
|
dns_name_t *name_dummy = NULL;
|
||||||
|
Reference in New Issue
Block a user