git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79c58c2
)
ldb controls: don't ignore memory allocation failure
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Thu, 10 Mar 2016 21:26:10 +0000
(10:26 +1300)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 22 Mar 2016 07:00:31 +0000
(08:00 +0100)
Thanks to Jeremy Allison for noticing this.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/common/ldb_controls.c
patch
|
blob
|
history
diff --git
a/lib/ldb/common/ldb_controls.c
b/lib/ldb/common/ldb_controls.c
index 0fdd13abc655e089188e094f4d181c271d843932..ba813ea04cf9f8df8a759851808ed1e313041d40 100644
(file)
--- a/
lib/ldb/common/ldb_controls.c
+++ b/
lib/ldb/common/ldb_controls.c
@@
-315,6
+315,9
@@
char *ldb_control_to_string(TALLOC_CTX *mem_ctx, const struct ldb_control *contr
cookie = ldb_base64_encode(mem_ctx,
(char *)rep_control->contextId,
rep_control->ctxid_len);
+ if (cookie == NULL) {
+ return NULL;
+ }
res = talloc_asprintf(mem_ctx, "%s:%d:%d:%d:%d:%s",
LDB_CONTROL_VLV_RESP_NAME,