Lines Matching refs:ref

1343 	ns_referral_info_t	*ref, *tmpref;  in __s_api_addRefInfo()  local
1374 ref = (ns_referral_info_t *)calloc(1, in __s_api_addRefInfo()
1376 if (ref == NULL) { in __s_api_addRefInfo()
1395 free(ref); in __s_api_addRefInfo()
1408 free(ref); in __s_api_addRefInfo()
1411 ref->refHost = strdup(ld_defhost); in __s_api_addRefInfo()
1412 if (ref->refHost == NULL) { in __s_api_addRefInfo()
1414 free(ref); in __s_api_addRefInfo()
1428 ref->refHost = (char *)malloc(hostlen); in __s_api_addRefInfo()
1429 if (ref->refHost == NULL) { in __s_api_addRefInfo()
1431 free(ref); in __s_api_addRefInfo()
1444 (void) snprintf(ref->refHost, hostlen, in __s_api_addRefInfo()
1449 (void) snprintf(ref->refHost, hostlen, in __s_api_addRefInfo()
1456 (void) snprintf(ref->refHost, hostlen, "%s", in __s_api_addRefInfo()
1462 ref->refDN = strdup(ludp->lud_dn); in __s_api_addRefInfo()
1463 if (ref->refDN == NULL) { in __s_api_addRefInfo()
1465 free(ref->refHost); in __s_api_addRefInfo()
1466 free(ref); in __s_api_addRefInfo()
1471 ref->refDN = strdup(baseDN); in __s_api_addRefInfo()
1472 if (ref->refDN == NULL) { in __s_api_addRefInfo()
1474 free(ref->refHost); in __s_api_addRefInfo()
1475 free(ref); in __s_api_addRefInfo()
1482 ref->refFilter = strdup(filter); in __s_api_addRefInfo()
1484 ref->refFilter = strdup(ludp->lud_filter); in __s_api_addRefInfo()
1486 ref->refFilter = strdup(""); in __s_api_addRefInfo()
1488 if (ref->refFilter == NULL) { in __s_api_addRefInfo()
1490 free(ref->refHost); in __s_api_addRefInfo()
1491 if (ref->refDN) in __s_api_addRefInfo()
1492 free(ref->refDN); in __s_api_addRefInfo()
1493 free(ref); in __s_api_addRefInfo()
1507 ref->refScope = ludp->lud_scope; in __s_api_addRefInfo()
1509 ref->refScope = LDAP_SCOPE_BASE; in __s_api_addRefInfo()
1511 ref->refScope = *scope; in __s_api_addRefInfo()
1513 ref->refScope = LDAP_SCOPE_SUBTREE; in __s_api_addRefInfo()
1515 ref->next = NULL; in __s_api_addRefInfo()
1523 tmpref->next = ref; in __s_api_addRefInfo()
1525 *head = ref; in __s_api_addRefInfo()
1538 ns_referral_info_t *ref, *tmp; in __s_api_deleteRefInfo() local
1544 for (ref = head; ref; ) { in __s_api_deleteRefInfo()
1545 if (ref->refHost) in __s_api_deleteRefInfo()
1546 free(ref->refHost); in __s_api_deleteRefInfo()
1547 if (ref->refDN) in __s_api_deleteRefInfo()
1548 free(ref->refDN); in __s_api_deleteRefInfo()
1549 if (ref->refFilter) in __s_api_deleteRefInfo()
1550 free(ref->refFilter); in __s_api_deleteRefInfo()
1551 tmp = ref->next; in __s_api_deleteRefInfo()
1552 free(ref); in __s_api_deleteRefInfo()
1553 ref = tmp; in __s_api_deleteRefInfo()