mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04: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:
parent
01e320c4fb
commit
5fe66a90ca
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue