mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
TRUCLUSTER support: isc_interfaceiter_first() should set clua_context.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* 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.
|
||||
@@ -152,9 +152,6 @@ getbuf4(isc_interfaceiter_t *iter) {
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -317,6 +314,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
|
||||
* 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;
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@@ -109,6 +109,9 @@ isc_interfaceiter_first(isc_interfaceiter_t *iter) {
|
||||
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)
|
||||
|
Reference in New Issue
Block a user