Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
cd82de56
Commit
cd82de56
authored
Oct 26, 2018
by
Quanah Gibson-Mount
Browse files
ITS#8866 (cont) slapo-unique
use correct memory allocation/free functions
parent
7359a541
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/unique.c
View file @
cd82de56
...
...
@@ -1012,11 +1012,11 @@ unique_search(
if
(
uq
.
count
)
{
errmsgsize
=
sizeof
(
"non-unique attributes found with "
)
+
key
->
bv_len
;
errmsg
=
ch_m
alloc
(
errmsgsize
);
errmsg
=
op
->
o_tmp
alloc
(
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_tmp
free
(
errmsg
,
op
->
o_tmpmemctx
);
return
(
rs
->
sr_err
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment