From 8742faf19f814d5bfc5900d885c833ae0e8f8794 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Wed, 1 Dec 2010 16:22:15 +0100 Subject: [PATCH] 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(-) diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index fb891ab8439..e1aa89801eb 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); -- 2.11.4.GIT