ITS#2645: fix NULL DN bug

This commit is contained in:
Kurt Zeilenga 2003-08-09 17:45:34 +00:00
parent 3186a1c27a
commit 794c4942bf

View 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 );