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:
f494d7d
)
r19896: Fix klokwork id 2279
author
Volker Lendecke
<vlendec@samba.org>
Sat, 25 Nov 2006 16:55:11 +0000
(16:55 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:16:07 +0000
(12:16 -0500)
(This used to be commit
558a13a755ff39c9f15ba4f0a2639ffe30c996ac
)
source3/lib/ldb/tools/cmdline.c
patch
|
blob
|
history
diff --git
a/source3/lib/ldb/tools/cmdline.c
b/source3/lib/ldb/tools/cmdline.c
index b20919ff97ded3e45fb419d9c5a02891ec2b45c4..8eb7a7e9525a22f6663159cb12cd6e34c2010b48 100644
(file)
--- a/
source3/lib/ldb/tools/cmdline.c
+++ b/
source3/lib/ldb/tools/cmdline.c
@@
-275,7
+275,11
@@
struct ldb_control **parse_controls(void *mem_ctx, char **control_strings)
}
ctrl[i]->oid = LDB_CONTROL_VLV_REQ_OID;
ctrl[i]->critical = crit;
- control = talloc(ctrl[i], struct ldb_vlv_req_control);
+ if (!(control = talloc(ctrl[i],
+ struct ldb_vlv_req_control))) {
+ fprintf(stderr, "talloc failed\n");
+ return NULL;
+ }
control->beforeCount = bc;
control->afterCount = ac;
if (attr[0]) {