]> git.sur5r.net Git - openldap/commitdiff
ITS#2645: fix NULL DN bug
authorKurt Zeilenga <kurt@openldap.org>
Sat, 9 Aug 2003 17:45:34 +0000 (17:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 9 Aug 2003 17:45:34 +0000 (17:45 +0000)
clients/tools/ldapmodify.c

index fc737a4862c62c21910cdf17c3378bff998f996e..219be2c5fd71728de18a2595a243a7e1d20fbac7 100644 (file)
@@ -814,6 +814,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 );