From: Joseph Sutton Date: Thu, 5 Oct 2023 23:48:40 +0000 (+1300) Subject: smbXcli: Remove unreachable code (CID 1444978) X-Git-Tag: tevent-0.16.0~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28a268b459eb101f8e815e04f550461ec17b4f5;p=thirdparty%2Fsamba.git smbXcli: Remove unreachable code (CID 1444978) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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);