Fixed slapd modify: delete of last attribute value bug (ITS#229)
Changes included in OpenLDAP 1.2 Release Engineering
CVS Tag: OPENLDAP_REL_ENG_1_2
+ Fixed slapd substring_comp_candidates null intersection bug (ITS#228)
+ Fixed slapd modify: delete of last attribute value bug (ITS#229)
Build environment
Updated Autoconf 2.13 config.guess/config.sub
Don't use "ln -s -f file link" (ITS#227)
idl_free( tmp );
idl_free( tmp2 );
}
+
+ /* break if no candidates */
+ if( idl == NULL ) {
+ break;
+ }
}
Debug( LDAP_DEBUG_TRACE, "<= substring_comp_candidates %lu\n",
a->a_vals[k - 1] = a->a_vals[k];
}
a->a_vals[k - 1] = NULL;
+
+ /* delete the entire attribute, if no values remain */
+ if ( a->a_vals[0] == NULL) {
+ Debug( LDAP_DEBUG_ARGS,
+ "removing entire attribute %s\n",
+ mod->mod_type, 0, 0 );
+ if ( attr_delete( &e->e_attrs, mod->mod_type ) ) {
+ return LDAP_NO_SUCH_ATTRIBUTE;
+ }
+ }
+
break;
}