mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r16784: - make some function in ldb static, they not need to be exported anywhere
- fix a bad segfault Andrew please make test before committing. Simo.
This commit is contained in:
parent
249bf24a40
commit
b9b6bb3e89
@ -617,6 +617,10 @@ static int password_hash_add(struct ldb_module *module, struct ldb_request *req)
|
||||
return LDB_ERR_CONSTRAINT_VIOLATION;
|
||||
}
|
||||
|
||||
h = ph_init_handle(req, module, PH_ADD);
|
||||
if (!h) {
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
ac = talloc_get_type(h->private_data, struct ph_async_context);
|
||||
|
||||
/* get user domain data */
|
||||
@ -626,10 +630,6 @@ static int password_hash_add(struct ldb_module *module, struct ldb_request *req)
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
h = ph_init_handle(req, module, PH_ADD);
|
||||
if (!h) {
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
ret = build_domain_data_request(ac);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return ret;
|
||||
|
@ -294,7 +294,7 @@ int ldb_transaction_cancel(struct ldb_context *ldb)
|
||||
return ldb_transaction_cancel_internal(ldb);
|
||||
}
|
||||
|
||||
int ldb_autotransaction_start(struct ldb_context *ldb)
|
||||
static int ldb_autotransaction_start(struct ldb_context *ldb)
|
||||
{
|
||||
/* explicit transaction active, ignore autotransaction request */
|
||||
if (ldb->transaction_active)
|
||||
@ -303,7 +303,7 @@ int ldb_autotransaction_start(struct ldb_context *ldb)
|
||||
return ldb_transaction_start_internal(ldb);
|
||||
}
|
||||
|
||||
int ldb_autotransaction_commit(struct ldb_context *ldb)
|
||||
static int ldb_autotransaction_commit(struct ldb_context *ldb)
|
||||
{
|
||||
/* explicit transaction active, ignore autotransaction request */
|
||||
if (ldb->transaction_active)
|
||||
@ -312,7 +312,7 @@ int ldb_autotransaction_commit(struct ldb_context *ldb)
|
||||
return ldb_transaction_commit_internal(ldb);
|
||||
}
|
||||
|
||||
int ldb_autotransaction_cancel(struct ldb_context *ldb)
|
||||
static int ldb_autotransaction_cancel(struct ldb_context *ldb)
|
||||
{
|
||||
/* explicit transaction active, ignore autotransaction request */
|
||||
if (ldb->transaction_active)
|
||||
|
Loading…
Reference in New Issue
Block a user