summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb
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
commit558a13a755ff39c9f15ba4f0a2639ffe30c996ac (patch)
tree5e172a9cf1bef0fec9c038123d8e8b2064a9416d /source/lib/ldb
parent8ccff6a4dd92dfad4942b562cd1bb27d22d59661 (diff)
downloadsamba-558a13a755ff39c9f15ba4f0a2639ffe30c996ac.tar.gz
samba-558a13a755ff39c9f15ba4f0a2639ffe30c996ac.tar.xz
samba-558a13a755ff39c9f15ba4f0a2639ffe30c996ac.zip
r19896: Fix klokwork id 2279
Diffstat (limited to 'source/lib/ldb')
-rw-r--r--source/lib/ldb/tools/cmdline.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/lib/ldb/tools/cmdline.c b/source/lib/ldb/tools/cmdline.c
index b20919ff97d..8eb7a7e9525 100644
--- a/source/lib/ldb/tools/cmdline.c
+++ b/source/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]) {