]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbXcli: Remove unreachable code (CID 1444978)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 Oct 2023 23:48:40 +0000 (12:48 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 02:18:31 +0000 (02:18 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smb/smbXcli_base.c

index d3a70cce85fd0312469561609a8df09c8636c8c5..a3079fc41e99f179cf87e24fd7b6c809d12b09c2 100644 (file)
@@ -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);