]> git.sur5r.net Git - openldap/commitdiff
Minor fix for LDAP_DN_IS_RDN_DC macro
authorHoward Chu <hyc@openldap.org>
Sun, 30 Dec 2001 23:10:31 +0000 (23:10 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 30 Dec 2001 23:10:31 +0000 (23:10 +0000)
libraries/libldap/getdn.c

index 6d3fffab6a57182dff03b5b3f07165b6cdbd6e54..8be043f9d667e35896be9fe427ed8016d9bf3c6c 100644 (file)
@@ -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]) \