]> git.sur5r.net Git - openldap/commitdiff
Don't need to malloc/free ma_rule_text
authorHoward Chu <hyc@openldap.org>
Sun, 6 Jan 2002 06:21:11 +0000 (06:21 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 6 Jan 2002 06:21:11 +0000 (06:21 +0000)
servers/slapd/mra.c

index 98bf139ddb26c2f06396efbe7a33c3b02f6d1800..87b4a47dda779fc9b6fd5d655690eeae8a9ea171 100644 (file)
@@ -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,