From: Howard Chu Date: Sun, 30 Dec 2001 23:10:31 +0000 (+0000) Subject: Minor fix for LDAP_DN_IS_RDN_DC macro X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~404 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7be02282492de76b4d11baa418ceae996a1fee2;p=openldap Minor fix for LDAP_DN_IS_RDN_DC macro --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 6d3fffab6a..8be043f9d6 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -464,7 +464,7 @@ ldap_dn_normalize( const char *dnin, unsigned fin, char **dnout, unsigned fout ) #define LDAP_DC_ATTR "dc" #define LDAP_DC_ATTRU "DC" #define LDAP_DN_IS_RDN_DC( r ) \ - ( (r) && (r)[0][0] && !(r)[1] \ + ( (r) && (r)[0][0] && !(r)[0][1] \ && ((r)[0][0]->la_flags == LDAP_AVA_STRING) \ && ((r)[0][0]->la_attr.bv_len == 2) \ && (((r)[0][0]->la_attr.bv_val[0] == LDAP_DC_ATTR[0]) \