Also we can defer it past a thing that doesn't need or check for it.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct ldb_request *parent)
{
unsigned int i, j;
- TALLOC_CTX *tmp_ctx = talloc_new(module);
+ TALLOC_CTX *tmp_ctx = NULL;
struct ldb_context *ldb = ldb_module_get_ctx(module);
const struct dsdb_attribute *target;
const char *attrs[2];
return LDB_SUCCESS;
}
+ tmp_ctx = talloc_new(module);
+ if (tmp_ctx == NULL) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
+
attrs[0] = target->lDAPDisplayName;
attrs[1] = NULL;