From 74773777c450097f3610a9578a85a6013332afce Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 3 Jul 2004 11:28:47 +0000 Subject: [PATCH] fix extended matching when rule is missing (ITS#3216) --- libraries/libldap/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ) ) { -- 2.39.5