mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-14 16:23:23 -05:00
Minor cleanup (coverity)
This commit is contained in:
parent
0677f67d29
commit
c25208cd14
2 changed files with 4 additions and 3 deletions
|
|
@ -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++ ) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
rs->sr_err = LDAP_UNAVAILABLE;
|
||||
rc = 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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue