Searched refs:hostent_head (Results 1 – 1 of 1) sorted by relevance
260 srv_record *hostent_head=NULL; in ldap_domain2hostlist() local352 hostent_head = (srv_record *) LDAP_REALLOC(hostent_head, (hostent_count+1)*(sizeof(srv_record))); in ldap_domain2hostlist()353 if(hostent_head==NULL){ in ldap_domain2hostlist()357 hostent_head[hostent_count].priority=priority; in ldap_domain2hostlist()358 hostent_head[hostent_count].weight=weight; in ldap_domain2hostlist()359 hostent_head[hostent_count].port=port; in ldap_domain2hostlist()360 strncpy(hostent_head[hostent_count].hostname, host, MAXHOST-1); in ldap_domain2hostlist()361 hostent_head[hostent_count].hostname[MAXHOST-1] = '\0'; in ldap_domain2hostlist()367 if (!hostent_head) goto out; in ldap_domain2hostlist()368 qsort(hostent_head, hostent_count, sizeof(srv_record), srv_cmp); in ldap_domain2hostlist()[all …]