git.samba.org
/
gary
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c7c1f
)
lib:ldb-samba: Use talloc_zero_array() and use ldb as the mem context
author
Andreas Schneider
<asn@samba.org>
Fri, 18 Dec 2020 07:38:22 +0000
(08:38 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 16 Jun 2021 00:34:38 +0000
(
00:34
+0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/samba_extensions.c
patch
|
blob
|
history
diff --git
a/lib/ldb-samba/samba_extensions.c
b/lib/ldb-samba/samba_extensions.c
index 60aa1a332b5a015e965548c735bf342b5cb40fce..c113e8cbe2a199c56e03e2c8708105009cf2a6de 100644
(file)
--- a/
lib/ldb-samba/samba_extensions.c
+++ b/
lib/ldb-samba/samba_extensions.c
@@
-84,7
+84,9
@@
static int extensions_hook(struct ldb_context *ldb, enum ldb_module_hook_type t)
len1 = calculate_popt_array_length(*popt_options);
len2 = calculate_popt_array_length(cmdline_extensions);
- new_array = talloc_array(NULL, struct poptOption, len1+len2+1);
+ new_array = talloc_array(ldb,
+ struct poptOption,
+ len1 + len2 + 1);
if (NULL == new_array) {
return ldb_oom(ldb);
}