Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
a14acc68
Commit
a14acc68
authored
Apr 06, 2003
by
Howard Chu
Browse files
ITS#2423 don't malloc prompt results
parent
4f8a99e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/ldapsasl/ldapdb.c
View file @
a14acc68
...
...
@@ -70,10 +70,7 @@ static int ldapdb_interact(LDAP *ld, unsigned flags __attribute__((unused)),
}
if
(
p
.
bv_val
)
{
in
->
result
=
gc
->
lp
->
utils
->
malloc
(
p
.
bv_len
+
1
);
if
(
!
in
->
result
)
return
LDAP_NO_MEMORY
;
strcpy
((
char
*
)
in
->
result
,
p
.
bv_val
);
in
->
result
=
p
.
bv_val
;
in
->
len
=
p
.
bv_len
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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