Commit c25208cd authored by Howard Chu's avatar Howard Chu
Browse files

Minor cleanup (coverity)

parent 0677f67d
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment