summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:55:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:07 -0500
commitf6dece8b4d651560ba72ea7efbc665d53aba64eb (patch)
tree008bfb0566b616562f585e2e2f7cc2599ecc5a8e
parentf494d7d31f59c171110b1d1a16b0720763c18acf (diff)
downloadsamba-f6dece8b4d651560ba72ea7efbc665d53aba64eb.tar.gz
samba-f6dece8b4d651560ba72ea7efbc665d53aba64eb.tar.bz2
samba-f6dece8b4d651560ba72ea7efbc665d53aba64eb.zip
r19896: Fix klokwork id 2279
(This used to be commit 558a13a755ff39c9f15ba4f0a2639ffe30c996ac)
-rw-r--r--source3/lib/ldb/tools/cmdline.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/ldb/tools/cmdline.c b/source3/lib/ldb/tools/cmdline.c
index b20919ff97..8eb7a7e952 100644
--- 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]) {