]> git.sur5r.net Git - openldap/commitdiff
Remove unused variables in slapi_filter_test()
authorLuke Howard <lukeh@openldap.org>
Sat, 26 Apr 2003 03:28:48 +0000 (03:28 +0000)
committerLuke Howard <lukeh@openldap.org>
Sat, 26 Apr 2003 03:28:48 +0000 (03:28 +0000)
servers/slapd/slapi/slapi_utils.c

index 55f6e934facf0f8a0547c42bd1dcd2fa6d0126f2..aae1b24e8a7231348df9e3c94d872340e50695c8 100644 (file)
@@ -1749,8 +1749,6 @@ slapi_filter_test( Slapi_PBlock *pb, Slapi_Entry *e, Slapi_Filter *f,
        int verify_access )
 {
 #ifdef LDAP_SLAPI
-       Backend *be = NULL;
-       Connection *conn;
        Operation *op;
        int rc;
 
@@ -1760,17 +1758,11 @@ slapi_filter_test( Slapi_PBlock *pb, Slapi_Entry *e, Slapi_Filter *f,
        }
 
        if ( verify_access ) {
-               (void) slapi_pblock_get(pb, SLAPI_BACKEND, (void *)&be);
-               rc = slapi_pblock_get(pb, SLAPI_CONNECTION, (void *)&conn);
-               if ( rc != 0 ) {
-                       return LDAP_PARAM_ERROR;
-               }
                rc = slapi_pblock_get(pb, SLAPI_OPERATION, (void *)&op);
                if ( rc != 0 ) {
                        return LDAP_PARAM_ERROR;
                }
        } else {
-               conn = NULL;
                op = NULL;
        }
        /*