Lines Matching refs:servers
349 idmap_ad_disc_ds_t *servers = NULL; in get_val_ds() local
415 if ((servers = calloc(count + 1, sizeof (*servers))) == NULL) { in get_val_ds()
422 servers[i].priority = 0; in get_val_ds()
423 servers[i].weight = 100; in get_val_ds()
424 servers[i].port = defport; in get_val_ds()
430 servers[i].port = strtol(portstr, in get_val_ds()
432 if (servers[i].port == 0) in get_val_ds()
433 servers[i].port = defport; in get_val_ds()
435 len = strlcpy(servers[i].host, host, in get_val_ds()
436 sizeof (servers->host)); in get_val_ds()
441 if (len < sizeof (servers->host)) in get_val_ds()
445 *val = servers; in get_val_ds()
455 if (servers) in get_val_ds()
456 free(servers); in get_val_ds()