mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
regdb: use regdb->transaction_start(regdb) != 0 consistent
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 093c3bced9
)
This commit is contained in:
parent
2a95f3f874
commit
618f22409a
@ -185,7 +185,7 @@ fail:
|
|||||||
*/
|
*/
|
||||||
bool init_registry_key(const char *add_path)
|
bool init_registry_key(const char *add_path)
|
||||||
{
|
{
|
||||||
if (regdb->transaction_start(regdb) == -1) {
|
if (regdb->transaction_start(regdb) != 0) {
|
||||||
DEBUG(0, ("init_registry_key: transaction_start failed\n"));
|
DEBUG(0, ("init_registry_key: transaction_start failed\n"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -228,7 +228,7 @@ bool init_registry_data(void)
|
|||||||
* transaction behaviour.
|
* transaction behaviour.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (regdb->transaction_start(regdb) == -1) {
|
if (regdb->transaction_start(regdb) != 0) {
|
||||||
DEBUG(0, ("init_registry_data: tdb_transaction_start "
|
DEBUG(0, ("init_registry_data: tdb_transaction_start "
|
||||||
"failed\n"));
|
"failed\n"));
|
||||||
return false;
|
return false;
|
||||||
@ -552,7 +552,7 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr)
|
|||||||
|
|
||||||
TALLOC_FREE(old_subkeys);
|
TALLOC_FREE(old_subkeys);
|
||||||
|
|
||||||
if (regdb->transaction_start(regdb) == -1) {
|
if (regdb->transaction_start(regdb) != 0) {
|
||||||
DEBUG(0, ("regdb_store_keys: transaction_start failed\n"));
|
DEBUG(0, ("regdb_store_keys: transaction_start failed\n"));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user