From 005823e032226965a9d4f2f636a7095174924ba3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 9 Jul 2001 10:35:43 +0000 Subject: [PATCH] Forbid empty ("") dn! (followup 5 to ITS#1173) --- servers/slapd/tools/slapadd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/tools/slapadd.c b/servers/slapd/tools/slapadd.c index 5bc3832970..55b536c43d 100644 --- a/servers/slapd/tools/slapadd.c +++ b/servers/slapd/tools/slapadd.c @@ -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; -- 2.39.5