1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libcli: Check schannel state return value of tdb_transaction_commit().

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2012-12-14 18:21:26 +01:00 committed by Günther Deschner
parent e41f0ccdd2
commit 9981b857a5

View File

@ -328,7 +328,11 @@ NTSTATUS schannel_check_creds_state(TALLOC_CTX *mem_ctx,
goto done;
}
tdb_transaction_commit(tdb_sc->tdb);
ret = tdb_transaction_commit(tdb_sc->tdb);
if (ret != 0) {
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
goto done;
}
if (creds_out) {
*creds_out = talloc_steal(mem_ctx, creds);