mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
a couple of comments; will require special DN handling ...
This commit is contained in:
parent
1a349907f3
commit
04ce28cf48
@ -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 */ ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user