mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
don't accept modify operations with no modifications (ITS#4183)
This commit is contained in:
parent
ad93816107
commit
99b450dc00
1 changed files with 8 additions and 0 deletions
|
|
@ -169,6 +169,14 @@ do_modify(
|
|||
}
|
||||
*modtail = NULL;
|
||||
|
||||
if ( modlist == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_modify: no modifications\n", 0, 0, 0 );
|
||||
send_ldap_error( op, rs, LDAP_PROTOCOL_ERROR,
|
||||
"empty change secquence in modify operation" );
|
||||
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_modify: get_ctrls failed\n", 0, 0, 0 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue