Lines Matching refs:nsServers

84 	dir_server_t	**nsServers;
1547 while (old_list->nsServers[i]) {
1548 free(old_list->nsServers[i]->ip);
1550 while (old_list->nsServers[i]->controls &&
1551 old_list->nsServers[i]->controls[j]) {
1552 free(old_list->nsServers[i]->controls[j]);
1555 free(old_list->nsServers[i]->controls);
1557 while (old_list->nsServers[i]->saslMech &&
1558 old_list->nsServers[i]->saslMech[j]) {
1559 free(old_list->nsServers[i]->saslMech[j]);
1562 free(old_list->nsServers[i]->saslMech);
1566 * All the structures pointed by old_list->nsServers were allocated
1567 * in one chunck. The nsServers[0] pointer points to the beginning
1570 free(old_list->nsServers[0]);
1571 free(old_list->nsServers);
1819 (*new_list)->nsServers = (dir_server_t **)calloc(srvListLength + 1,
1821 if ((*new_list)->nsServers == NULL) {
1831 * with one alloc call and then initialize the nsServers pointers
1837 (*new_list)->nsServers[i] = &tmpSrvArray[i];
1839 (*new_list)->nsServers[i]->info = INFO_STATUS_NEW;
1840 (void) mutex_init(&(*new_list)->nsServers[i]->updateStatus,
1844 (*new_list)->nsServers[i]->ip = strdup(serverList[i]);
1845 if ((*new_list)->nsServers[i]->ip == NULL) {
1850 (*new_list)->nsServers[i]->status = INFO_SERVER_CONNECTING;
1855 (*new_list)->nsServers[i],
1859 (*new_list)->nsServers[i]->status =
1865 (*new_list)->nsServers[i]->status =
1887 (*new_list)->nsServers[i]->status =
2258 (void) mutex_lock(&current_list->nsServers[0]->updateStatus);
2260 current_list->nsServers[0]->info == INFO_STATUS_NEW) {
2263 (void) mutex_unlock(&current_list->nsServers[i]->updateStatus);
2265 for (i = 0; current_list->nsServers[i]; ++i) {
2272 strcmp(current_list->nsServers[i]->ip,
2282 nsServers[i]->updateStatus);
2283 if (current_list->nsServers[i]->status ==
2286 nsServers[i]->
2291 nsServers[i]->
2299 nsServers[i]->
2301 if (current_list->nsServers[i]->info ==
2303 current_list->nsServers[i]->status ==
2305 server = current_list->nsServers[i];
2307 nsServers[i]->
2326 current_list->nsServers[i]->status =
2329 nsServers[i]->
2351 nsServers[i]->
2353 if (current_list->nsServers[i]->status ==
2356 nsServers[i]->
2358 server = current_list->nsServers[i];
2363 nsServers[i]->
2365 if (current_list->nsServers[i]->status ==
2368 nsServers[i]->
2370 server = current_list->nsServers[i];
2376 nsServers[i]->
2465 while (current_list->nsServers[i] != NULL) {
2477 if (current_list->nsServers[i]->status != INFO_SERVER_REMOVED &&
2478 current_list->nsServers[i]->status != INFO_SERVER_ERROR) {
2481 current_list->nsServers[i]->status = INFO_SERVER_CONNECTING;
2482 current_list->nsServers[i]->info = INFO_STATUS_NEW;
2484 __s_api_free2dArray(current_list->nsServers[i]->controls);
2485 current_list->nsServers[i]->controls = NULL;
2486 __s_api_free2dArray(current_list->nsServers[i]->saslMech);
2487 current_list->nsServers[i]->saslMech = NULL;
2492 current_list->nsServers[i],
2496 current_list->nsServers[i]->status = INFO_SERVER_ERROR;
2501 current_list->nsServers[i]->status = INFO_SERVER_ERROR;
2519 current_list->nsServers[i]->status =