diff options
Diffstat (limited to 'source3/lib/ldb/tools/cmdline.c')
-rw-r--r-- | source3/lib/ldb/tools/cmdline.c | 6 |
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]) { |