Skip to content
Snippets Groups Projects
Commit 6e586291 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5584

parent aa2bdbad
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ OpenLDAP 2.4.11 Engineering
Fixed slapd-meta link to slapd-ldap (ITS#5355)
Fixed slapd-sock, back-shell buffer count (ITS#5558)
Fixed slapo-dynlist dg attrs lookup (ITS#5583)
Fixed slapo-memberof replace handling (ITS#5584)
Added slapo-nssov contrib module
Fixed slapo-pcache handling of negative search caches (ITS#5546)
Fixed slapo-ppolicy DNs with whitespaces (ITS#5552)
......
......@@ -843,6 +843,12 @@ memberof_op_modify( Operation *op, SlapReply *rs )
break;
case LDAP_MOD_REPLACE:
/* Handle this just like a delete (see above) */
if ( !ml->sml_values ) {
mlp = &ml->sml_next;
break;
}
case LDAP_MOD_ADD:
/* NOTE: right now, the attributeType we use
* for member must have a normalized value */
......@@ -1038,7 +1044,7 @@ memberof_op_modify( Operation *op, SlapReply *rs )
goto done2;
}
if ( ml->sml_op == LDAP_MOD_DELETE ) {
if ( ml->sml_op == LDAP_MOD_DELETE || !ml->sml_values ) {
break;
}
/* fall thru */
......@@ -1305,7 +1311,7 @@ memberof_res_modify( Operation *op, SlapReply *rs )
ber_bvarray_free_x( vals, op->o_tmpmemctx );
}
if ( ml->sml_op == LDAP_MOD_DELETE ) {
if ( ml->sml_op == LDAP_MOD_DELETE || !mml->sml_values ) {
break;
}
/* fall thru */
......@@ -1362,7 +1368,7 @@ memberof_res_modify( Operation *op, SlapReply *rs )
ber_bvarray_free_x( vals, op->o_tmpmemctx );
}
if ( ml->sml_op == LDAP_MOD_DELETE ) {
if ( ml->sml_op == LDAP_MOD_DELETE || !ml->sml_values ) {
break;
}
/* fall thru */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment