Skip to content
Snippets Groups Projects
Commit 794c4942 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#2645: fix NULL DN bug

parent 3186a1c2
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment