From e75627a7a77f8e5002b76293d5f43a7a59a90018 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 6 Jan 2002 06:21:11 +0000 Subject: [PATCH] Don't need to malloc/free ma_rule_text --- servers/slapd/mra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/mra.c b/servers/slapd/mra.c index 98bf139ddb..87b4a47dda 100644 --- a/servers/slapd/mra.c +++ b/servers/slapd/mra.c @@ -21,7 +21,9 @@ mra_free( int freeit ) { +#if 0 /* no longer a malloc'd string */ ch_free( mra->ma_rule_text.bv_val ); +#endif ch_free( mra->ma_value.bv_val ); if ( freeit ) { ch_free( (char *) mra ); @@ -64,7 +66,7 @@ get_mra( } if ( tag == LDAP_FILTER_EXT_OID ) { - rc = ber_scanf( ber, "o", &ma->ma_rule_text ); + rc = ber_scanf( ber, "m", &ma->ma_rule_text ); if ( rc == LBER_ERROR ) { #ifdef NEW_LOGGING LDAP_LOG(( "operation", LDAP_LEVEL_ERR, -- 2.39.5