Lines Matching refs:hostp
633 ldap_x_hostlist_first( const char *hostlist, int defport, char **hostp, in ldap_x_hostlist_first() argument
637 if ( NULL == hostp || NULL == portp || NULL == statusp ) { in ldap_x_hostlist_first()
642 *hostp = nsldapi_strdup( "127.0.0.1" ); in ldap_x_hostlist_first()
643 if ( NULL == *hostp ) { in ldap_x_hostlist_first()
661 return( ldap_x_hostlist_next( hostp, portp, *statusp )); in ldap_x_hostlist_first()
671 ldap_x_hostlist_next( char **hostp, int *portp, in ldap_x_hostlist_next() argument
677 if ( NULL == hostp || NULL == portp ) { in ldap_x_hostlist_next()
682 *hostp = NULL; in ldap_x_hostlist_next()
698 *hostp = NSLDAPI_MALLOC( len + 1 ); in ldap_x_hostlist_next()
699 if ( NULL == *hostp ) { in ldap_x_hostlist_next()
702 strncpy( *hostp, status->lhs_nexthost, len ); in ldap_x_hostlist_next()
703 (*hostp)[len] = '\0'; in ldap_x_hostlist_next()
706 *hostp = nsldapi_strdup( status->lhs_nexthost ); in ldap_x_hostlist_next()
707 if ( NULL == *hostp ) { in ldap_x_hostlist_next()
716 if ( squarebrackets && NULL != ( q = strchr( *hostp, ']' ))) { in ldap_x_hostlist_next()
719 q = *hostp; in ldap_x_hostlist_next()