mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix negated tests in IA5StringNormalize and numericStringNormalize.
This commit is contained in:
parent
11ccf96104
commit
16f2a29c23
@ -534,7 +534,7 @@ IA5StringNormalize(
|
|||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( *p != '\0' ) {
|
if( *p == '\0' ) {
|
||||||
ch_free( newval );
|
ch_free( newval );
|
||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
}
|
}
|
||||||
@ -1112,7 +1112,7 @@ numericStringNormalize(
|
|||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( *p != '\0' ) {
|
if( *p == '\0' ) {
|
||||||
ch_free( newval );
|
ch_free( newval );
|
||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user