From 49632d414e13ecd2f17362869c5dc1cceb47862b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 18 Nov 2010 13:28:47 +0100 Subject: [PATCH] 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). --- source3/libsmb/async_smb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index e8a0b138804..1f4ef6f130d 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -705,6 +705,8 @@ static void cli_smb_received(struct tevent_req *subreq) DEBUG(10, ("cli_check_sign_mac failed\n")); TALLOC_FREE(inbuf); status = NT_STATUS_ACCESS_DENIED; + close(cli->fd); + cli->fd = -1; goto fail; } -- 2.11.4.GIT