From: Howard Chu Date: Sun, 12 Oct 2003 01:03:23 +0000 (+0000) Subject: Import ITS#2645 from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_1_23~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=932fec6e2ee7987bba5244ae8d3509ef6d5d0a1a;p=thirdparty%2Fopenldap.git Import ITS#2645 from HEAD --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index d4f452b95e..a1b3dee17d 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -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 );