git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9733d71
)
s4:dsdb/common/util.c - "samdb_msg_add_add/delval" - introduce also here the better...
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Wed, 1 Dec 2010 15:22:15 +0000
(16:22 +0100)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Wed, 1 Dec 2010 15:30:08 +0000
(16:30 +0100)
"msg->elements" fits better than "msg".
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index fb891ab8439518a394b134f5aa340e4948e2c0f2..e1aa89801ebe4f6316cece1a8236f9774a9c7a9a 100644
(file)
--- 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);