From: Kurt Zeilenga Date: Sat, 9 Aug 2003 17:45:34 +0000 (+0000) Subject: ITS#2645: fix NULL DN bug X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~803 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=794c4942bf4783d3e61ac4c8aa7eb006402893ca;p=openldap ITS#2645: fix NULL DN bug --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index fc737a4862..219be2c5fd 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -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 );