Commit 32de8248 authored by Brian Wellington's avatar Brian Wellington
Browse files

dns_rdataset_current was being called on an rdataset without earlier calling

dns_rdataset_first.
parent 6cab5e20
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: xfrout.c,v 1.73 2000/08/09 04:17:49 tale Exp $ */
/* $Id: xfrout.c,v 1.74 2000/08/23 17:40:53 bwelling Exp $ */
#include <config.h>
......@@ -214,6 +214,9 @@ db_rr_iterator_next(db_rr_iterator_t *it) {
if (it->result != ISC_R_SUCCESS)
return (it->result);
dns_rdatasetiter_current(it->rdatasetit, &it->rdataset);
it->result = dns_rdataset_first(&it->rdataset);
if (it->result != ISC_R_SUCCESS)
return (it->result);
}
return (it->result);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment