X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2FmatchedValues.c;h=fb2af1bb051ea776024f337c018ce060f367df84;hb=9777dc21148eaba94326aa41d851d558d8869b0e;hp=febd05d24a37f30760e72c48ccc8c5e7a1962581;hpb=c75be97ae946dab41f002a31d8347cc38cda7658;p=openldap diff --git a/servers/slapd/matchedValues.c b/servers/slapd/matchedValues.c index febd05d24a..fb2af1bb05 100644 --- a/servers/slapd/matchedValues.c +++ b/servers/slapd/matchedValues.c @@ -1,13 +1,18 @@ /* $OpenLDAP$ */ -/* +/* This work is part of OpenLDAP Software . + * * Copyright 1999-2003 The OpenLDAP Foundation. * All rights reserved. * - * Redistribution and use in source and binary forms are permitted only - * as authorized by the OpenLDAP Public License. A copy of this - * license is available at http://www.OpenLDAP.org/license.html or - * in file LICENSE in the top-level directory of the distribution. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in the file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . */ + #include "portable.h" #include @@ -17,8 +22,6 @@ #include "slap.h" -#include "../../libraries/liblber/lber-int.h" - static int test_mra_vrFilter( Operation *op, @@ -69,7 +72,7 @@ filter_matched_values( Debug( LDAP_DEBUG_FILTER, "=> filter_matched_values\n", 0, 0, 0 ); #endif - for ( vrf = op->vrFilter; vrf != NULL; vrf = vrf->vrf_next ) { + for ( vrf = op->o_vrFilter; vrf != NULL; vrf = vrf->vrf_next ) { switch ( vrf->vrf_choice ) { case SLAPD_FILTER_COMPUTED: #ifdef NEW_LOGGING @@ -359,7 +362,7 @@ test_mra_vrFilter( rc = asserted_value_validate_normalize( a->a_desc, mra->ma_rule, SLAP_MR_EXT|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX, - &mra->ma_value, &value, &text ); + &mra->ma_value, &value, &text, op->o_tmpmemctx ); if( rc != LDAP_SUCCESS ) continue; }