* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ifiter_ioctl.c,v 1.31 2002/07/01 23:00:37 marka Exp $ */
+/* $Id: ifiter_ioctl.c,v 1.32 2002/07/02 05:51:42 marka Exp $ */
/*
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
unexpected:
isc_mem_put(iter->mctx, iter->buf, iter->bufsize);
iter->buf = NULL;
-#ifdef HAVE_TRUCLUSTER
- iter->clua_context = 0;
-#endif
return (ISC_R_UNEXPECTED);
}
* A newly created iterator has an undefined position
* until isc_interfaceiter_first() is called.
*/
+ iter->clua_context = -1;
iter->pos = (unsigned int) -1;
iter->result = ISC_R_FAILURE;
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: interfaceiter.c,v 1.26 2002/07/01 23:00:38 marka Exp $ */
+/* $Id: interfaceiter.c,v 1.27 2002/07/02 05:51:43 marka Exp $ */
#include <config.h>
REQUIRE(VALID_IFITER(iter));
iter->pos = 0;
+#ifdef HAVE_TRUCLUSTER
+ iter->clua_context = 0;
+#endif
for (;;) {
result = internal_current(iter);
if (result != ISC_R_IGNORE)