From 3d0371937f4d158feee75b5f49fc3776c8b5722b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 6 May 2025 17:06:39 +0200 Subject: [PATCH] libsmb: Remove an unused variable Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/libsmb/clidfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 69d49c243f8..129a0a66ba6 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -150,7 +150,6 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx, enum smb_encryption_setting encryption_state = cli_credentials_get_smb_encryption(creds); struct smb2_negotiate_contexts *in_contexts = NULL; - struct smb2_negotiate_contexts *out_contexts = NULL; if (encryption_state >= SMB_ENCRYPTION_DESIRED) { signing_state = SMB_SIGNING_REQUIRED; @@ -226,8 +225,8 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx, lp_client_min_protocol(), lp_client_max_protocol(), in_contexts, - ctx, - &out_contexts); + NULL, + NULL); TALLOC_FREE(in_contexts); if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) { -- 2.47.3