Skip to content

Commit 63153c5

Browse files
committed
quic: fix clang warning
1 parent 56967af commit 63153c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/quic/node_quic_crypto.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,9 @@ Local<Value> GetALPNProtocol(const QuicSession& session) {
560560
QuicCryptoContext* ctx = session.crypto_context();
561561
Environment* env = session.env();
562562
std::string alpn = ctx->selected_alpn();
563-
if (alpn == NGTCP2_ALPN_H3 + 1) {
563+
// This supposed to be `NGTCP2_ALPN_H3 + 1`
564+
// Details see https://github.com/nodejs/node/issues/33959
565+
if (alpn == &NGTCP2_ALPN_H3[1]) {
564566
return env->quic_alpn_string();
565567
} else {
566568
return ToV8Value(

0 commit comments

Comments
 (0)