From 04ce28cf4873596fa140cec3e589d94273900bb0 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 28 Dec 2001 18:18:16 +0000 Subject: [PATCH] a couple of comments; will require special DN handling ... --- servers/slapd/aclparse.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 7c5d27f4c8..53f1daf418 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -1189,6 +1189,12 @@ acl_regex_normalized_dn( for ( p = str; p && p[ 0 ]; p++ ) { /* escape */ if ( p[ 0 ] == '\\' ) { + /* + * if escaping a hex pair we should + * increment p twice; however, in that + * case the second hex number does + * no harm + */ p++; } @@ -1196,6 +1202,10 @@ acl_regex_normalized_dn( if ( p[ 1 ] == ' ' ) { char *q; + /* + * too much space should be + * an error if we are pedantic + */ for ( q = &p[ 2 ]; q[ 0 ] == ' '; q++ ) { /* DO NOTHING */ ; } -- 2.39.5