mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:winbindd:autorid check that transaction start did work
this fixes Coverity #700172 CHECKED_RETURN Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Wed May 9 00:27:08 CEST 2012 on sn-devel-104
This commit is contained in:
parent
09494ed613
commit
088436dff3
@ -435,7 +435,11 @@ static NTSTATUS idmap_autorid_map_sid_to_id(struct idmap_domain *dom,
|
||||
sid_string_dbg(map->sid)));
|
||||
|
||||
/* create new mapping */
|
||||
dbwrap_transaction_start(ctx->db);
|
||||
res = dbwrap_transaction_start(ctx->db);
|
||||
if (res != 0) {
|
||||
DEBUG(2, ("transaction_start failed\n"));
|
||||
return NT_STATUS_INTERNAL_DB_CORRUPTION;
|
||||
}
|
||||
|
||||
ret = idmap_tdb_common_new_mapping(dom, map);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user