From ad48d85ce5417cb19be66f8700541415c62a3421 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 28 Jun 2004 20:55:04 +0000 Subject: [PATCH] fix ITS#3208 --- libraries/libldap/filter.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index 3c03bf255a..b1468d047b 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -968,7 +968,7 @@ put_vrFilter( BerElement *ber, const char *str_in ) 0, 0, 0 ); #endif next = strchr( str, '\0' ); - if ( put_simple_filter( ber, str ) == -1 ) { + if ( put_simple_vrFilter( ber, str ) == -1 ) { rc = -1; goto done; } @@ -1098,12 +1098,8 @@ put_simple_vrFilter( goto done; } rule = ""; - - } else { - *rule++ = '\0'; } - if ( *str == '\0' && ( !rule || *rule == '\0' ) ) { /* must have either type or rule */ goto done; -- 2.39.5