s3: Make winbind recover from a signing error
[samba.git] / source3 / libsmb / async_smb.c
index e683e375d9ad442d80528b5ed3879627dc391ac6..0336ff226c800b4e75b2239ed2cd030bdf4c1348 100644 (file)
@@ -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;
        }