From 291d560d4cc5cca9c79a54aec73e29e7dfc1b0cb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 Feb 2021 17:43:08 -0800 Subject: [PATCH] s3: libsmb: Add missing cli_tdis() in error path if encryption setup failed on temp proxy connection. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13992 Signed-off-by: Jeremy Allison --- source3/libsmb/clidfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 4495a027830..3cc52cc5ac9 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -1230,6 +1230,7 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, if (force_encrypt) { status = cli_cm_force_encryption_creds(cli, creds, "IPC$"); if (!NT_STATUS_IS_OK(status)) { + cli_tdis(cli); cli_state_restore_tcon(cli, orig_tcon); return false; } -- 2.27.0