From 8680c6f888f76159b6155d055d394a0e1214c3cf Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 26 Nov 2010 13:08:27 +0100 Subject: s4:objectclass LDB module - simply use "msg" when requesting the message --- source4/dsdb/samdb/ldb_modules/objectclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/samdb') 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)); -- cgit