]> git.sur5r.net Git - openldap/commitdiff
Additional SLAPI updates from HEAD
authorKurt Zeilenga <kurt@openldap.org>
Sun, 8 Jan 2006 20:16:58 +0000 (20:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 8 Jan 2006 20:16:58 +0000 (20:16 +0000)
servers/slapd/slapi/slapi_overlay.c
servers/slapd/slapi/slapi_utils.c

index f0939886e90701b512b5de0c9b2326bd59697e64..1ffe35af6d74f2eb15c2bb9652000c5aa8156ed6 100644 (file)
@@ -479,7 +479,7 @@ slapi_over_unmerge_controls( Operation *op, SlapReply *rs )
 
        slapi_pblock_get( pb, SLAPI_X_OLD_RESCONTROLS, (void **)&rs_ctrls );
 
-       if ( rs->sr_ctrls == NULL || rs->sr_ctrls == rs_ctrls ) {
+       if ( rs_ctrls == NULL || rs->sr_ctrls == rs_ctrls ) {
                /* no copying done */
                return LDAP_SUCCESS;
        }
index ef216736b8db89a2d61b32f48b7dc919cda7358c..f60cc9d18e733e641d6e32deced54a014402754f 100644 (file)
@@ -2717,7 +2717,6 @@ LDAPMod **slapi_int_modifications2ldapmods( Modifications *modlist )
                        modp->mod_type = slapi_ch_strdup( ml->sml_desc->ad_cname.bv_val );
                } else {
                        modp->mod_type = slapi_ch_strdup( ml->sml_type.bv_val );
-                       BER_BVZERO( &ml->sml_type );
                }
 
                if ( ml->sml_values != NULL ) {
@@ -3100,7 +3099,7 @@ int slapi_int_access_allowed( Operation *op,
                break;
         }
 
-       rc = slapi_int_get_plugins( op->o_bd, SLAPI_PLUGIN_ACL_ALLOW_ACCESS, (SLAPI_FUNC **)&tmpPlugin );
+       rc = slapi_int_get_plugins( frontendDB, SLAPI_PLUGIN_ACL_ALLOW_ACCESS, (SLAPI_FUNC **)&tmpPlugin );
        if ( rc != LDAP_SUCCESS || tmpPlugin == NULL ) {
                /* nothing to do; allowed access */
                return 1;