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
Robert Dubner
OpenLDAP
Commits
62cfa792
Commit
62cfa792
authored
Jan 18, 1999
by
Kurt Zeilenga
Browse files
Fix slapd crash (ITS#38)... onelevel_candidates() should attempt
to return entry lock with e == NULL.
parent
fcbb2b0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/search.c
View file @
62cfa792
...
...
@@ -359,7 +359,7 @@ onelevel_candidates(
)
{
struct
ldbminfo
*
li
=
(
struct
ldbminfo
*
)
be
->
be_private
;
Entry
*
e
;
Entry
*
e
=
NULL
;
Filter
*
f
;
char
buf
[
20
];
IDList
*
candidates
;
...
...
@@ -367,7 +367,7 @@ onelevel_candidates(
Debug
(
LDAP_DEBUG_TRACE
,
"onelevel_candidates: base:
\"
%s
\"\n
"
,
base
,
0
,
0
);
*
err
=
LDAP_SUCCESS
;
e
=
NULL
;
/* get the base object with reader lock */
if
(
base
!=
NULL
&&
*
base
!=
'\0'
&&
(
e
=
dn2entry_r
(
be
,
base
,
matched
))
==
NULL
)
...
...
@@ -402,7 +402,9 @@ onelevel_candidates(
filter_free
(
f
);
/* free entry and reader lock */
cache_return_entry_r
(
&
li
->
li_cache
,
e
);
if
(
e
!=
NULL
)
{
cache_return_entry_r
(
&
li
->
li_cache
,
e
);
}
return
(
candidates
);
}
...
...
@@ -442,6 +444,8 @@ subtree_candidates(
*
err
=
LDAP_SUCCESS
;
f
=
NULL
;
if
(
lookupbase
)
{
e
=
NULL
;
if
(
base
!=
NULL
&&
*
base
!=
'\0'
&&
(
e
=
dn2entry_r
(
be
,
base
,
matched
))
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
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