Lines Matching refs:mods

63 	LDAPMod		**mods;  in nsldapi_add_result_to_cache()  local
83 mods = (LDAPMod **)NSLDAPI_MALLOC( GRABSIZE * sizeof(LDAPMod *) ); in nsldapi_add_result_to_cache()
84 if (mods == NULL) { in nsldapi_add_result_to_cache()
94 mods = (LDAPMod **)NSLDAPI_REALLOC( mods, in nsldapi_add_result_to_cache()
96 if (mods == NULL) { in nsldapi_add_result_to_cache()
104 mods[i] = (LDAPMod *)NSLDAPI_CALLOC( 1, sizeof(LDAPMod) ); in nsldapi_add_result_to_cache()
105 if (mods[i] == NULL) { in nsldapi_add_result_to_cache()
109 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
112 mods[i]->mod_op = LDAP_MOD_BVALUES; in nsldapi_add_result_to_cache()
113 mods[i]->mod_type = a; in nsldapi_add_result_to_cache()
114 mods[i]->mod_bvalues = ldap_get_values_len( ld, m, a ); in nsldapi_add_result_to_cache()
123 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
130 mods = (LDAPMod **)NSLDAPI_REALLOC( mods, in nsldapi_add_result_to_cache()
132 if (mods == NULL) { in nsldapi_add_result_to_cache()
136 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
140 mods[i] = (LDAPMod *)NSLDAPI_CALLOC( 1, sizeof(LDAPMod) ); in nsldapi_add_result_to_cache()
141 if (mods[i] == NULL) { in nsldapi_add_result_to_cache()
145 ldap_mods_free( mods, 1 ); in nsldapi_add_result_to_cache()
148 mods[i]->mod_op = LDAP_MOD_BVALUES; in nsldapi_add_result_to_cache()
149 mods[i]->mod_type = "cachedtime"; in nsldapi_add_result_to_cache()
155 mods[i]->mod_bvalues = bvp; in nsldapi_add_result_to_cache()
156 mods[++i] = NULL; in nsldapi_add_result_to_cache()
159 rc = (ld->ld_cache_add)( ld, -1, m->lm_msgtype, dn, mods ); in nsldapi_add_result_to_cache()