Skip to content

Commit 2467b86

Browse files
memberOf plugin: redundant comparison removed
'msg->dn' (== 'addop->entry_dn') is already filtered out from 'parents->dns[i]' at the beginning of `mbof_add_operation()`
1 parent c6dc4d7 commit 2467b86

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ldb_modules/memberof.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ static int mbof_add_operation(struct mbof_add_operation *addop)
934934
return LDB_ERR_OPERATIONS_ERROR;
935935
}
936936
for (i = 0, j = 0; i < parents->num; i++) {
937-
if (ldb_dn_compare(parents->dns[i], msg->dn) == 0) continue;
938937
val = ldb_dn_get_linearized(parents->dns[i]);
939938
el->values[j].length = strlen(val);
940939
el->values[j].data = (uint8_t *)talloc_strdup(el->values, val);

0 commit comments

Comments
 (0)