summaryrefslogtreecommitdiffstats
path: root/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-04-20 13:55:04 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-04-20 13:55:04 +0200
commit8a5d94e329e8ee2e7d4e03b9719188cb50bc4978 (patch)
tree703fc3c8b3ae39eb57cd242f52c51ba406e43a45 /libcli
parentddcc355f2b5379884755827c20a1d1bfd1fd4d51 (diff)
downloadsamba-8a5d94e329e8ee2e7d4e03b9719188cb50bc4978.tar.gz
samba-8a5d94e329e8ee2e7d4e03b9719188cb50bc4978.tar.xz
samba-8a5d94e329e8ee2e7d4e03b9719188cb50bc4978.zip
libcli/auth Ensure we cancel the transaction when schannel not detected
(found by jra on code review) Andrew Bartlett
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/schannel_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/auth/schannel_state.c b/libcli/auth/schannel_state.c
index b45249e9e2b..e01330010b2 100644
--- a/libcli/auth/schannel_state.c
+++ b/libcli/auth/schannel_state.c
@@ -294,6 +294,7 @@ NTSTATUS schannel_creds_server_step_check(struct ldb_context *ldb,
if (schannel_required_for_call && !schannel_in_use) {
DEBUG(0,("schannel_creds_server_step_check: client %s not using schannel for netlogon, despite negotiating it\n",
creds->computer_name ));
+ ldb_transaction_cancel(ldb);
return NT_STATUS_ACCESS_DENIED;
}