]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import ITS#2645 from HEAD
authorHoward Chu <hyc@openldap.org>
Sun, 12 Oct 2003 01:03:23 +0000 (01:03 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 12 Oct 2003 01:03:23 +0000 (01:03 +0000)
clients/tools/ldapmodify.c

index d4f452b95ed450a920f492b333ed114954dcfa3e..a1b3dee17dbe16ab6129bd8cfb6dfe24fcdf370c 100644 (file)
@@ -810,6 +810,11 @@ domodify(
     int                        i, j, k, notascii, op;
     struct berval      *bvp;
 
+       if ( dn == NULL ) {
+       fprintf( stderr, _("%s: no DN specified\n"), prog );
+       return( LDAP_PARAM_ERROR );
+       }
+
     if ( pmods == NULL ) {
        fprintf( stderr, "%s: no attributes to change or add (entry=\"%s\")\n",
                prog, dn );