From: Kurt Zeilenga Date: Thu, 17 Nov 2005 23:09:46 +0000 (+0000) Subject: Add empty modify fix (ITS#4183) X-Git-Tag: OPENLDAP_REL_ENG_2_3_12~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08124f289ddd170ace4531ab743277a3174295be;p=openldap Add empty modify fix (ITS#4183) --- diff --git a/CHANGES b/CHANGES index 0339a7d375..ae3e453f59 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ OpenLDAP 2.3.12 Release Fixed libldap HSTRERROR issue (ITS#4124) Added libldap/slapd TLS DSA certificate support (ITS#4017) Fixed libldap SASL bind issue (ITS#4158) + Fixed ldapmodrdn empty line handling (ITS#4101) Fixed client tools additional info printing (ITS#4147) Updated slapd ldaps:// not configured fix (ITS#4082,4083) Fixed slapd illegal S option bug (ITS#4119) @@ -16,7 +17,9 @@ OpenLDAP 2.3.12 Release Fixed slapd non-reentrant libwrap issue (ITS#4099) Fixed slapd AIX IFMT issue (ITS#4123) Fixed slapd thread v. tools_threads settings - Fixed ldapmodrdn empty line handling (ITS#4101) + Fixed slapd spurious defer message (ITS#3850) + Fixed slapd attribute SYNTAX OIDM issue (ITS#4116) + Fixed slapd modify empty sequence bug (ITS#4183) Fixed slapd-bdb uninitialized condition in tool mode (ITS#4143) Fixed slapd-bdb empty suffix and syncprov issue (ITS#4171) Fixed slapd-hdb syncrepl deadlock issue (ITS#4088) @@ -32,8 +35,6 @@ OpenLDAP 2.3.12 Release Fixed slapo-ppolicy pwdFailureTIme after bind success issue (ITS#4134) Fixed slapo-ppolicy add passord_hash quality config dependency Fixed slapo-syncprov LDAP response types (ITS#4183) - Fixed slapd spurious defer message (ITS#3850) - Fixed slapd attribute SYNTAX OIDM issue (ITS#4116) Added slapd delta syncrepl support Added slapadd thread support Updated slapcat subordinate database handling (ITS#4089) diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 90c7d3c3a0..1fae806ddf 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -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, + "change sequence empty" ); + + goto cleanup; + } + if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_ANY, "do_modify: get_ctrls failed\n", 0, 0, 0 );