mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
ITS#2645: fix NULL DN bug
This commit is contained in:
parent
3186a1c27a
commit
794c4942bf
1 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue