diff --git a/src/crypto/crypto_common.cc b/src/crypto/crypto_common.cc index 69979e3546e902..eab144cfdf663b 100644 --- a/src/crypto/crypto_common.cc +++ b/src/crypto/crypto_common.cc @@ -87,10 +87,9 @@ void LogSecret( } bool SetALPN(const SSLPointer& ssl, std::string_view alpn) { - return SSL_set_alpn_protos( - ssl.get(), - reinterpret_cast(alpn.data()), - alpn.length()) == 0; + return SSL_set_alpn_protos(ssl.get(), + reinterpret_cast(alpn.data()), + alpn.length()) == 0; } MaybeLocal GetSSLOCSPResponse( diff --git a/src/crypto/crypto_tls.cc b/src/crypto/crypto_tls.cc index c7d4eb1b24b3b5..6e6ef5251fca0e 100644 --- a/src/crypto/crypto_tls.cc +++ b/src/crypto/crypto_tls.cc @@ -1531,7 +1531,7 @@ void TLSWrap::SetALPNProtocols(const FunctionCallbackInfo& args) { if (w->is_client()) { ArrayBufferViewContents protos(args[0].As()); - CHECK(SetALPN(w->ssl_, { protos.data(), protos.length() })); + CHECK(SetALPN(w->ssl_, {protos.data(), protos.length()})); } else { CHECK( w->object()->SetPrivate(