Fix use of wrong union arm in linked_attributes module
authorAndrew Bartlett <abartlet@samba.org>
Mon, 27 Oct 2008 02:11:28 +0000 (13:11 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Nov 2008 05:06:56 +0000 (16:06 +1100)
This bug occours frequenetly in ldb users because the union so happens
to be layed out that this works.  However, it is still incorrect
usage...

Andrew Bartlett

source4/dsdb/samdb/ldb_modules/linked_attributes.c

index 190a66cdb3ef13b3becb901c8ec108d0942a2605..bafd7e5ecf72e06dc9c8e56370e42537ad660480 100644 (file)
@@ -177,7 +177,7 @@ static int linked_attributes_add(struct ldb_module *module, struct ldb_request *
        int ret;
        int i, j;
 
-       if (ldb_dn_is_special(req->op.mod.message->dn)) {
+       if (ldb_dn_is_special(req->op.add.message->dn)) {
                /* do not manipulate our control entries */
                return ldb_next_request(module, req);
        }