mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Forbid empty ("") dn! (followup 5 to ITS#1173)
This commit is contained in:
parent
2baa2f0f24
commit
005823e032
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ main( int argc, char **argv )
|
|||
}
|
||||
|
||||
/* make sure the DN is valid */
|
||||
if( dn_normalize( e->e_ndn ) == NULL ) {
|
||||
if( dn_normalize( e->e_ndn ) == NULL || e->e_ndn[0] == '\0' ) {
|
||||
fprintf( stderr, "%s: invalid dn=\"%s\" (line=%d)\n",
|
||||
progname, e->e_dn, lineno );
|
||||
rc = EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue