From 7eb77f514e9c31ae3efc3852b29fdc5f72edac8e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 5 Oct 2007 08:36:24 +0000 Subject: [PATCH] fix previous commit --- servers/slapd/filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index 3216f7e466..f56b48e14a 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -546,7 +546,6 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr ) int i; Filter *p; struct berval tmp; - char uuid[ LDAP_LUTIL_UUIDSTR_BUFSIZE ]; static struct berval ber_bvfalse = BER_BVC( "(?=false)" ), ber_bvtrue = BER_BVC( "(?=true)" ), @@ -564,10 +563,10 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr ) switch ( f->f_choice ) { case LDAP_FILTER_EQUALITY: if ( f->f_av_desc->ad_type->sat_syntax == slap_schema.si_ad_entryUUID->ad_type->sat_syntax ) { + tmp.bv_val = op->o_tmpalloc( LDAP_LUTIL_UUIDSTR_BUFSIZE, op->o_tmpmemctx ); tmp.bv_len = lutil_uuidstr_from_normalized( f->f_av_value.bv_val, - f->f_av_value.bv_len, uuid, LDAP_LUTIL_UUIDSTR_BUFSIZE ); + f->f_av_value.bv_len, tmp.bv_val, LDAP_LUTIL_UUIDSTR_BUFSIZE ); assert( tmp.bv_len > 0 ); - tmp.bv_val = uuid; } else { filter_escape_value_x( &f->f_av_value, &tmp, op->o_tmpmemctx ); } -- 2.39.2