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
Nadezhda Ivanova
OpenLDAP
Commits
19dc4918
Commit
19dc4918
authored
Apr 04, 2003
by
Pierangelo Masarati
Browse files
handle failure or missing attrs
parent
b282339c
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldap/search.c
View file @
19dc4918
...
@@ -488,11 +488,13 @@ ldap_build_entry(
...
@@ -488,11 +488,13 @@ ldap_build_entry(
* later, the local subschemaSubentry is
* later, the local subschemaSubentry is
* added.
* added.
*/
*/
(
void
)
ber_scanf
(
&
ber
,
"[W]"
,
&
vals
);
if
(
ber_scanf
(
&
ber
,
"[W]"
,
&
vals
)
!=
LBER_ERROR
for
(
bv
=
vals
;
bv
->
bv_val
;
bv
++
)
{
&&
vals
!=
NULL
)
{
LBER_FREE
(
bv
->
bv_val
);
for
(
bv
=
vals
;
bv
->
bv_val
;
bv
++
)
{
LBER_FREE
(
bv
->
bv_val
);
}
LBER_FREE
(
vals
);
}
}
LBER_FREE
(
vals
);
ch_free
(
attr
);
ch_free
(
attr
);
continue
;
continue
;
...
...
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