mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Undo previous commit
This commit is contained in:
parent
f991ef04e6
commit
10ad231cac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user