Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
c25208cd
Commit
c25208cd
authored
Jan 14, 2015
by
Howard Chu
Browse files
Minor cleanup (coverity)
parent
0677f67d
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-meta/config.c
View file @
c25208cd
...
...
@@ -1790,7 +1790,7 @@ meta_back_cf_gen( ConfigArgs *c )
case
LDAP_BACK_CFG_IDASSERT_AUTHZFROM
:
{
BerVarray
*
bvp
;
bvp
=
&
mt
->
mt_idassert_authz
;
break
;
bvp
=
&
mt
->
mt_idassert_authz
;
if
(
c
->
valx
<
0
)
{
if
(
*
bvp
!=
NULL
)
{
ber_bvarray_free
(
*
bvp
);
...
...
@@ -2657,6 +2657,7 @@ idassert-authzFrom "dn:<rootdn>"
/* re-parse all rewrite rules, up to the one
* that needs to be added */
ca
.
be
=
c
->
be
;
ca
.
fname
=
c
->
fname
;
ca
.
lineno
=
c
->
lineno
;
for
(
i
=
0
;
i
<
ix
;
i
++
)
{
...
...
servers/slapd/back-meta/search.c
View file @
c25208cd
...
...
@@ -251,6 +251,7 @@ retry:;
Debug
(
LDAP_DEBUG_ANY
,
"%s meta_search_dobind_init[%d] mc=%p: "
"empty dn with non-empty cred: error
\n
"
,
op
->
o_log_prefix
,
candidate
,
(
void
*
)
mc
);
rc
=
LDAP_OTHER
;
goto
other
;
}
...
...
@@ -335,7 +336,7 @@ down:;
if
(
*
mcp
==
NULL
)
{
retcode
=
META_SEARCH_ERR
;
r
s
->
sr_err
=
LDAP_UNAVAILABLE
;
r
c
=
LDAP_UNAVAILABLE
;
candidates
[
candidate
].
sr_msgid
=
META_MSGID_IGNORE
;
break
;
}
...
...
@@ -353,7 +354,6 @@ other:;
LDAP_BACK_CONN_TAINTED_SET
(
mc
);
meta_back_release_conn_lock
(
mi
,
mc
,
0
);
*
mcp
=
NULL
;
rs
->
sr_err
=
rc
;
retcode
=
META_SEARCH_ERR
;
...
...
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