1
0
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:
Christian Ambach 2012-05-08 17:16:49 +02:00
parent 09494ed613
commit 088436dff3

View File

@ -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);