Lines Matching defs:ref
1413 * INPUT: pointer to the referral list, pointer to ref URLs,
1423 ns_ref_info_t *ref = NULL, *tmp_ref;
1464 ref = (ns_ref_info_t *)calloc(1, sizeof (ns_ref_info_t));
1465 if (ref == NULL)
1483 free(ref);
1484 ref = NULL;
1500 free(ref);
1501 ref = NULL;
1504 ref->refHost = strdup(ld_defhost);
1505 if (ref->refHost == NULL)
1518 ref->refHost = (char *)malloc(hostlen);
1519 if (ref->refHost == NULL)
1532 (void) snprintf(ref->refHost, hostlen,
1537 (void) snprintf(ref->refHost, hostlen,
1544 (void) snprintf(ref->refHost, hostlen, "%s",
1550 ref->refDN = strdup(ludp->lud_dn);
1551 if (ref->refDN == NULL)
1555 ref->refDN = strdup(baseDN);
1556 if (ref->refDN == NULL)
1562 ref->refFilter = strdup(filter);
1564 ref->refFilter = strdup(ludp->lud_filter);
1566 ref->refFilter = strdup("");
1568 if (ref->refFilter == NULL)
1582 ref->refScope = ludp->lud_scope;
1584 ref->refScope = LDAP_SCOPE_BASE;
1586 ref->refScope = *scope;
1588 ref->refScope = LDAP_SCOPE_SUBTREE;
1593 if (referral->ref == NULL) {
1594 referral->ref = ref;
1596 for (tmp_ref = referral->ref; tmp_ref->next != NULL;
1599 tmp_ref->next = ref;
1601 ref = NULL;
1603 if (referral->ref == NULL) {
1623 if (ref)
1624 __s_api_deleteRefInfo(ref);
1636 ns_ref_info_t *ref = head;
1639 while (ref != NULL) {
1640 if (ref->refHost)
1641 free(ref->refHost);
1642 if (ref->refDN)
1643 free(ref->refDN);
1644 if (ref->refFilter)
1645 free(ref->refFilter);
1646 tmp_ref = ref->next;
1647 free(ref);
1648 ref = tmp_ref;
1667 __s_api_deleteRefInfo(referral->ref);