From 8742faf19f814d5bfc5900d885c833ae0e8f8794 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 1 Dec 2010 16:22:15 +0100 Subject: s4:dsdb/common/util.c - "samdb_msg_add_add/delval" - introduce also here the better memory context "msg->elements" fits better than "msg". --- source4/dsdb/common/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/common/util.c') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index fb891ab843..e1aa89801e 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -808,7 +808,7 @@ int samdb_msg_add_addval(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, } } - vals = talloc_realloc(msg, el->values, struct ldb_val, + vals = talloc_realloc(msg->elements, el->values, struct ldb_val, el->num_values + 1); if (vals == NULL) { return ldb_oom(sam_ldb); @@ -864,7 +864,7 @@ int samdb_msg_add_delval(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, } } - vals = talloc_realloc(msg, el->values, struct ldb_val, + vals = talloc_realloc(msg->elements, el->values, struct ldb_val, el->num_values + 1); if (vals == NULL) { return ldb_oom(sam_ldb); -- cgit