]> git.sur5r.net Git - openldap/commitdiff
Undo previous commit
authorHoward Chu <hyc@openldap.org>
Sun, 19 Sep 1999 01:04:38 +0000 (01:04 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 19 Sep 1999 01:04:38 +0000 (01:04 +0000)
servers/slapd/add.c

index eab269a1302ac97b374ee01f8397b1602e97f203..388ad9d629960ca608cca10e26f7600babd74cc6 100644 (file)
@@ -67,17 +67,17 @@ do_add( Connection *conn, Operation *op )
                return -1;
        }
 
-       if ( dn_normalize( dn ) == NULL ) {
+       ndn = ch_strdup( dn );
+
+       if ( dn_normalize_case( ndn ) == NULL ) {
                Debug( LDAP_DEBUG_ANY, "do_add: invalid dn (%s)\n", dn, 0, 0 );
                send_ldap_result( conn, op, LDAP_INVALID_DN_SYNTAX, NULL,
                    "invalid DN", NULL, NULL );
                free( dn );
+               free( ndn );
                return LDAP_INVALID_DN_SYNTAX;
        }
 
-       ndn = ch_strdup( dn );
-       ldap_pvt_str2upper( ndn );
-
        e = (Entry *) ch_calloc( 1, sizeof(Entry) );
 
        e->e_dn = dn;