Minor cleanup (coverity)

This commit is contained in:
Howard Chu 2015-01-14 12:27:28 +00:00
parent 0677f67d29
commit c25208cd14
2 changed files with 4 additions and 3 deletions

View file

@ -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++ ) {

View file

@ -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;