summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-17 08:56:28 -0700
committerKarolin Seeger <kseeger@samba.org>2010-11-24 18:27:42 +0100
commit8c2493ff2e646928035ec7296f4451f09390f6aa (patch)
tree171cf799ade8201cd1e4741e33ee163c42b6ef9b
parente18ef6cdf042a73e7f08b792e4a9901b071b1f67 (diff)
downloadsamba-8c2493ff2e646928035ec7296f4451f09390f6aa.tar.gz
s3: Make winbind recover from a signing error
When winbind sees a signing error on the smb connection to a DC (for whatever reason, our bug, network glitch, etc) it should recover properly. The "old" code in clientgen.c just closed the socket in this case. This is the right thing to do, this connection is spoiled anyway. The new, async code did not do this so far, which led to the code in winbindd_cm.c not detect that we need to reconnect. Fix bug #7800 (winbind does not recover from smb signing errors).
-rw-r--r--source3/libsmb/async_smb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index e683e375d9a..0336ff226c8 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -848,6 +848,8 @@ static NTSTATUS validate_smb_crypto(struct cli_state *cli, char *pdu)
if (!cli_check_sign_mac(cli, pdu)) {
DEBUG(10, ("cli_check_sign_mac failed\n"));
+ close(cli->fd);
+ cli->fd = -1;
return NT_STATUS_ACCESS_DENIED;
}