Lines Matching refs:host
57 static void delete_ds(adutils_ad_t *ad, const char *host, int port);
559 delete_ds((*ad), p->host, p->port);
605 adh->ld = ldap_init(adh->host, adh->port);
608 "%s port %d failed. (%s)", adh->host,
636 "%s port %d failed. (%s)", adh->host, adh->port,
642 adh->host, adh->port);
754 /* Free this host if its owner no longer exists. */
757 delete_ds(NULL, adh->host, adh->port);
766 adutils_add_ds(adutils_ad_t *ad, const char *host, int port)
778 if (strcmp(host, p->host) == 0 && p->port == port) {
796 if ((new->host = strdup(host)) == NULL)
802 free(new->host);
803 new->host = NULL;
818 if (new->host != NULL) {
820 free(new->host);
834 delete_ds(adutils_ad_t *ad, const char *host, int port)
839 if ((*p)->owner != ad || strcmp(host, (*p)->host) != 0 ||
864 if (q->host)
865 free(q->host);