From: Pierangelo Masarati Date: Mon, 28 Jun 2004 20:55:04 +0000 (+0000) Subject: fix ITS#3208 X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad48d85ce5417cb19be66f8700541415c62a3421;p=openldap fix ITS#3208 --- 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;