mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#2388 fix if() conditions.
This commit is contained in:
parent
ae0576ea1b
commit
062f54d1cc
@ -332,7 +332,7 @@ int ldap_t61s_to_utf8s( struct berval *src, struct berval *dst )
|
||||
/* Invalid T.61 characters? */
|
||||
if (!t61_tab[*c])
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
if (*c & 0xf0 == 0xc0) {
|
||||
if ((*c & 0xf0) == 0xc0) {
|
||||
int j = *c & 0x0f;
|
||||
/* If this is the end of the string, or if the base
|
||||
* character is just a space, treat this as a regular
|
||||
@ -368,7 +368,7 @@ int ldap_t61s_to_utf8s( struct berval *src, struct berval *dst )
|
||||
return LDAP_NO_MEMORY;
|
||||
|
||||
for (i=0,c=(unsigned char *)src->bv_val; i < src->bv_len; c++,i++) {
|
||||
if (*c & 0xf0 == 0xc0) {
|
||||
if ((*c & 0xf0) == 0xc0) {
|
||||
int j = *c & 0x0f;
|
||||
/* If this is the end of the string, or if the base
|
||||
* character is just a space, treat this as a regular
|
||||
|
Loading…
Reference in New Issue
Block a user