coverity cleanup

This commit is contained in:
Howard Chu 2006-05-09 10:41:05 +00:00
parent 912ff2798b
commit 0a43acc732
2 changed files with 3 additions and 5 deletions

View File

@ -3619,8 +3619,8 @@ config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs,
/* No parent, must be root. This will never happen... */
if ( !last && !be_isroot( op ) && !be_shadow_update( op ))
return LDAP_NO_SUCH_OBJECT;
if ( !access_allowed( op, last->ce_entry, slap_schema.si_ad_children,
NULL, ACL_WADD, NULL ))
if ( last && !access_allowed( op, last->ce_entry,
slap_schema.si_ad_children, NULL, ACL_WADD, NULL ))
return LDAP_INSUFFICIENT_ACCESS;
}

View File

@ -475,9 +475,7 @@ cleanup:;
op->o_tmpfree( o.ors_filterstr.bv_val, op->o_tmpmemctx );
lud->lud_filter = NULL;
}
if ( lud ) {
ldap_free_urldesc( lud );
}
ldap_free_urldesc( lud );
}
rs->sr_entry = e;