mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
coverity cleanup
This commit is contained in:
parent
912ff2798b
commit
0a43acc732
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user