mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#8866 (cont) slapo-unique
use correct memory allocation/free functions
This commit is contained in:
parent
7359a5413a
commit
cd82de56c8
1 changed files with 2 additions and 2 deletions
|
|
@ -1012,11 +1012,11 @@ unique_search(
|
|||
|
||||
if(uq.count) {
|
||||
errmsgsize = sizeof("non-unique attributes found with ") + key->bv_len;
|
||||
errmsg = ch_malloc(errmsgsize);
|
||||
errmsg = op->o_tmpalloc(errmsgsize, op->o_tmpmemctx);
|
||||
snprintf( errmsg, errmsgsize, "non-unique attributes found with %s", key->bv_val );
|
||||
op->o_bd->bd_info = (BackendInfo *) on->on_info;
|
||||
send_ldap_error(op, rs, LDAP_CONSTRAINT_VIOLATION, errmsg);
|
||||
ch_free(errmsg);
|
||||
op->o_tmpfree(errmsg, op->o_tmpmemctx);
|
||||
return(rs->sr_err);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue