mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
parent
8b60b7fa2a
commit
56bacd2b44
@ -130,7 +130,6 @@ static int samldb_find_next_rid(struct ldb_module *module, TALLOC_CTX *mem_ctx,
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
talloc_steal(mem_ctx, res);
|
||||
if (res->count != 1) {
|
||||
talloc_free(res);
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
@ -257,6 +256,7 @@ static int samldb_get_new_sid(struct ldb_module *module,
|
||||
ldb_asprintf_errstring(module->ldb,
|
||||
"samldb_get_new_sid: error retrieving domain sid from %s: not found!\n",
|
||||
ldb_dn_linearize(mem_ctx, dom_dn));
|
||||
talloc_free(res);
|
||||
return LDB_ERR_CONSTRAINT_VIOLATION;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user