diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-25 16:53:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:07 -0500 |
commit | f494d7d31f59c171110b1d1a16b0720763c18acf (patch) | |
tree | d7e69258b0df7341e7c337e094043a98e525402a /source3/lib/ldb/tools | |
parent | 40dc09e009ca91225345e7f27936b38133bf7131 (diff) | |
download | samba-f494d7d31f59c171110b1d1a16b0720763c18acf.tar.gz samba-f494d7d31f59c171110b1d1a16b0720763c18acf.tar.bz2 samba-f494d7d31f59c171110b1d1a16b0720763c18acf.zip |
r19895: Fix klokwork id 2278
(This used to be commit 8ccff6a4dd92dfad4942b562cd1bb27d22d59661)
Diffstat (limited to 'source3/lib/ldb/tools')
-rw-r--r-- | source3/lib/ldb/tools/cmdline.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/ldb/tools/cmdline.c b/source3/lib/ldb/tools/cmdline.c index 928519f3bb..b20919ff97 100644 --- a/source3/lib/ldb/tools/cmdline.c +++ b/source3/lib/ldb/tools/cmdline.c @@ -269,7 +269,10 @@ struct ldb_control **parse_controls(void *mem_ctx, char **control_strings) fprintf(stderr, " note: b = boolean, n = number, s = string, o = b64 binary blob\n"); return NULL; } - ctrl[i] = talloc(ctrl, struct ldb_control); + if (!(ctrl[i] = talloc(ctrl, struct ldb_control))) { + fprintf(stderr, "talloc failed\n"); + return NULL; + } ctrl[i]->oid = LDB_CONTROL_VLV_REQ_OID; ctrl[i]->critical = crit; control = talloc(ctrl[i], struct ldb_vlv_req_control); |