]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smb2_server: Remove unreachable code (CID 1444981)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 Oct 2023 23:49:32 +0000 (12:49 +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>
source3/smbd/smb2_server.c

index 317599e38b4e2a95aa3c853292589375a4ddc5af..034370ffcfd244cdbff6203dccb0f689d95a3b87 100644 (file)
@@ -3809,10 +3809,6 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req)
                                return gnutls_error_to_ntstatus(rc, NT_STATUS_HASH_NOT_SUPPORTED);
                        }
                }
-               if (rc < 0) {
-                       gnutls_hash_deinit(hash_hnd, NULL);
-                       return gnutls_error_to_ntstatus(rc, NT_STATUS_HASH_NOT_SUPPORTED);
-               }
                gnutls_hash_output(hash_hnd, req->preauth->sha512_value);
 
                rc = gnutls_hash(hash_hnd,