summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/drsuapi/addentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/addentry.c b/source4/rpc_server/drsuapi/addentry.c
index c7c95821ab..7bf8f39592 100644
--- a/source4/rpc_server/drsuapi/addentry.c
+++ b/source4/rpc_server/drsuapi/addentry.c
@@ -101,7 +101,7 @@ static WERROR drsuapi_add_SPNs(struct drsuapi_bind_state *b_state,
}
el->num_values = 2;
- el->values = talloc_array(el, struct ldb_val, 2);
+ el->values = talloc_array(msg->elements, struct ldb_val, 2);
if (el->values == NULL) {
return WERR_NOMEM;
}