From 794c4942bf4783d3e61ac4c8aa7eb006402893ca Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 9 Aug 2003 17:45:34 +0000 Subject: [PATCH] ITS#2645: fix NULL DN bug --- clients/tools/ldapmodify.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ); -- 2.39.5