From: Kurt Zeilenga Date: Sat, 10 Apr 1999 01:34:55 +0000 (+0000) Subject: Apply fix to "group/group_objectclass/member_atribute" parsing X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93fa38cd0897349109eb14695fcc0b4fc3da4f45;p=openldap Apply fix to "group/group_objectclass/member_atribute" parsing suggested by Gerrit Thomson --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index b7b0d9507a..00f9201131 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -203,14 +203,14 @@ parse_acl( b->a_dnattr = ch_strdup( right ); #ifdef SLAPD_ACLGROUPS - } else if ( strcasecmp( left, "group" ) == 0 ) { + } else if ( strncasecmp( left, "group", sizeof("group")-1 ) == 0 ) { char *name = NULL; char *value = NULL; regtest(fname, lineno, right); /* format of string is "group/objectClassValue/groupAttrName" */ - if ((value = strchr(right, '/')) != NULL) { + if ((value = strchr(left, '/')) != NULL) { *value++ = '\0'; if (value && *value && (name = strchr(value, '/')) != NULL) *name++ = '\0';