diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-01 16:22:15 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-01 16:30:08 +0100 |
commit | 8742faf19f814d5bfc5900d885c833ae0e8f8794 (patch) | |
tree | 505a2b3e8b94ab1ce4a002e6bc552b832db7b612 /source4 | |
parent | 9733d711994fc7955a041b34a7b7a39f303d5cf3 (diff) | |
download | samba-8742faf19f814d5bfc5900d885c833ae0e8f8794.tar.gz samba-8742faf19f814d5bfc5900d885c833ae0e8f8794.tar.bz2 samba-8742faf19f814d5bfc5900d885c833ae0e8f8794.zip |
s4:dsdb/common/util.c - "samdb_msg_add_add/delval" - introduce also here the better memory context
"msg->elements" fits better than "msg".
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |