From 10ad231cac8da40faa964af8d5e5f78eefb7c4d6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 19 Sep 1999 01:04:38 +0000 Subject: [PATCH] Undo previous commit --- servers/slapd/add.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/add.c b/servers/slapd/add.c index eab269a130..388ad9d629 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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; -- 2.39.5