From: Pierangelo Masarati Date: Sat, 3 Jul 2004 11:28:47 +0000 (+0000) Subject: fix extended matching when rule is missing (ITS#3216) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74773777c450097f3610a9578a85a6013332afce;p=openldap fix extended matching when rule is missing (ITS#3216) --- diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index b1468d047b..9a432cb878 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -1090,7 +1090,6 @@ put_simple_vrFilter( { char *rule = strchr( str, ':' ); - *rule++ = '\0'; if( rule == NULL ) { /* must have attribute */ @@ -1098,6 +1097,8 @@ put_simple_vrFilter( goto done; } rule = ""; + } else { + *rule++ = '\0'; } if ( *str == '\0' && ( !rule || *rule == '\0' ) ) {