diff options
Diffstat (limited to 'chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc')
-rw-r--r-- | chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc b/chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc index c211cdb3345..d5689862fcf 100644 --- a/chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc +++ b/chromium/net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.cc @@ -38,7 +38,6 @@ #include "net/third_party/quiche/src/quic/platform/api/quic_bug_tracker.h" #include "net/third_party/quiche/src/quic/platform/api/quic_cert_utils.h" #include "net/third_party/quiche/src/quic/platform/api/quic_clock.h" -#include "net/third_party/quiche/src/quic/platform/api/quic_endian.h" #include "net/third_party/quiche/src/quic/platform/api/quic_fallthrough.h" #include "net/third_party/quiche/src/quic/platform/api/quic_flag_utils.h" #include "net/third_party/quiche/src/quic/platform/api/quic_flags.h" @@ -385,14 +384,14 @@ std::unique_ptr<CryptoHandshakeMessage> QuicCryptoServerConfig::AddConfig( std::unique_ptr<CryptoHandshakeMessage> msg = CryptoFramer::ParseMessage(protobuf.config()); - if (!msg.get()) { + if (!msg) { QUIC_LOG(WARNING) << "Failed to parse server config message"; return nullptr; } QuicReferenceCountedPointer<Config> config = ParseConfigProtobuf(protobuf, /* is_fallback = */ false); - if (!config.get()) { + if (!config) { QUIC_LOG(WARNING) << "Failed to parse server config message"; return nullptr; } @@ -896,7 +895,7 @@ void QuicCryptoServerConfig::ProcessClientHelloAfterCalculateSharedKeys( } std::unique_ptr<CryptoHandshakeMessage> cetv(CryptoFramer::ParseMessage( QuicStringPiece(plaintext, plaintext_length))); - if (!cetv.get()) { + if (!cetv) { context->Fail(QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER, "CETV parse error"); return; } @@ -1281,7 +1280,6 @@ void QuicCryptoServerConfig::EvaluateClientHello( // Server nonce is optional, and used for key derivation if present. client_hello.GetStringPiece(kServerNonceTag, &info->server_nonce); - QUIC_DVLOG(1) << "No 0-RTT replay protection in QUIC_VERSION_33 and higher."; // If the server nonce is empty and we're requiring handshake confirmation // for DoS reasons then we must reject the CHLO. if (GetQuicReloadableFlag(quic_require_handshake_confirmation) && |