Remove impossible ssl->s3 null check.
ssl->s3 is never null. And if it were, we'd have crashed long before.
Change-Id: Idb441c3a91d8c77327a0f9a6d193a64367f347ee
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/47904
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/t1_lib.cc b/ssl/t1_lib.cc
index 420b6ee..e034bda 100644
--- a/ssl/t1_lib.cc
+++ b/ssl/t1_lib.cc
@@ -1958,7 +1958,7 @@
// Per RFC 8446 section 4.1.4, skip offering the session if the selected
// cipher in HelloRetryRequest does not match. This avoids performing the
// transcript hash transformation for multiple hashes.
- if (ssl->s3 && ssl->s3->used_hello_retry_request &&
+ if (ssl->s3->used_hello_retry_request &&
ssl->session->cipher->algorithm_prf != hs->new_cipher->algorithm_prf) {
return true;
}