summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-26 13:08:27 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-26 13:10:01 +0100
commit8680c6f888f76159b6155d055d394a0e1214c3cf (patch)
tree8d30cbe93b29f1ad4fdd8b7e83b29cf35d3cd811 /source4
parent848010b5705eb6e11d1b9361c5a7243c9da4e886 (diff)
downloadsamba-8680c6f888f76159b6155d055d394a0e1214c3cf.tar.gz
samba-8680c6f888f76159b6155d055d394a0e1214c3cf.tar.bz2
samba-8680c6f888f76159b6155d055d394a0e1214c3cf.zip
s4:objectclass LDB module - simply use "msg" when requesting the message
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index edc9fabd5c..48813e5ac0 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -490,8 +490,8 @@ static int objectclass_do_add(struct oc_context *ac)
/* An add operation on partition DNs without "NC-add" operation
* isn't allowed. */
- instanceType = ldb_msg_find_attr_as_uint(ac->req->op.add.message,
- "instanceType", 0);
+ instanceType = ldb_msg_find_attr_as_uint(msg, "instanceType",
+ 0);
if (!(instanceType & INSTANCE_TYPE_IS_NC_HEAD)) {
ldb_asprintf_errstring(ldb, "objectclass: Cannot add %s, parent does not exist!",
ldb_dn_get_linearized(msg->dn));