From: Kurt Zeilenga Date: Mon, 24 Mar 2003 04:08:22 +0000 (+0000) Subject: T.61 fix X-Git-Tag: OPENLDAP_REL_ENG_2_1_17~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc58f2580cadf366c5b7706f0d62c9416b83d64c;p=thirdparty%2Fopenldap.git T.61 fix --- diff --git a/libraries/libldap/t61.c b/libraries/libldap/t61.c index 4450e2d3ba..bd0bd3ab62 100644 --- a/libraries/libldap/t61.c +++ b/libraries/libldap/t61.c @@ -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