From b28a268b459eb101f8e815e04f550461ec17b4f5 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 6 Oct 2023 12:48:40 +1300 Subject: [PATCH] smbXcli: Remove unreachable code (CID 1444978) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- libcli/smb/smbXcli_base.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index d3a70cce85f..a3079fc41e9 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -5447,13 +5447,6 @@ static void smbXcli_negprot_smb2_done(struct tevent_req *subreq) } } - if (rc < 0) { - gnutls_hash_deinit(hash_hnd, NULL); - tevent_req_nterror(req, - gnutls_error_to_ntstatus(rc, NT_STATUS_HASH_NOT_SUPPORTED)); - return; - } - /* This resets the hash state */ gnutls_hash_output(hash_hnd, conn->smb2.preauth_sha512); TALLOC_FREE(subreq);