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
openldap
OpenLDAP
Commits
835d0ebd
Commit
835d0ebd
authored
May 17, 2000
by
Howard Chu
Browse files
Fix ldif_parse_line, binary attributes got truncated because the final
value was copied with ber_strdup.
parent
00f6f9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldif/line64.c
View file @
835d0ebd
...
...
@@ -223,14 +223,16 @@ done:
}
if
(
!
url
&&
value
!=
NULL
)
{
value
=
ber_
strdup
(
value
);
if
(
value
==
NULL
)
{
p
=
ber_
memalloc
(
vlen
);
if
(
p
==
NULL
)
{
ber_pvt_log_printf
(
LDAP_DEBUG_ANY
,
ldif_debug
,
"ldif_parse_line: value malloc failed
\n
"
);
ber_memfree
(
type
);
ber_memfree
(
freeme
);
return
(
-
1
);
}
memcpy
(
p
,
value
,
vlen
);
value
=
p
;
}
ber_memfree
(
freeme
);
...
...
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