From 1a55430c6519f113e65d7c7e6351cdf873fbcc82 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 17 Mar 2003 00:27:33 +0000 Subject: [PATCH] SLAP_NVALUES: more fixes --- servers/slapd/filter.c | 2 ++ servers/slapd/value.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index eadf4f377c..7ebb6ddb19 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -428,6 +428,7 @@ get_substring_filter( " unknown substring choice=%ld\n", (long) tag, 0, 0 ); #endif + free( value.bv_val ); goto return_error; } @@ -529,6 +530,7 @@ get_substring_filter( (long) tag, 0, 0 ); #endif + assert( 0 ); free( nvalue.bv_val ); return_error: diff --git a/servers/slapd/value.c b/servers/slapd/value.c index 82fead26c6..553c627aa8 100644 --- a/servers/slapd/value.c +++ b/servers/slapd/value.c @@ -167,6 +167,8 @@ int asserted_value_validate_normalize( } else { ber_dupbv( out, in ); } + + return LDAP_SUCCESS; } #else -- 2.39.5