Skip to content

Commit

Permalink
quic: fix clang warning
Browse files Browse the repository at this point in the history
PR-URL: #33963
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
gengjiawen authored and jasnell committed Jun 22, 2020
1 parent 680644a commit 8ef86a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/quic/node_quic_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ Local<Value> GetALPNProtocol(const QuicSession& session) {
QuicCryptoContext* ctx = session.crypto_context();
Environment* env = session.env();
std::string alpn = ctx->selected_alpn();
if (alpn == NGTCP2_ALPN_H3 + 1) {
// This supposed to be `NGTCP2_ALPN_H3 + 1`
// Details see https://github.com/nodejs/node/issues/33959
if (alpn == &NGTCP2_ALPN_H3[1]) {
return env->quic_alpn_string();
} else {
return ToV8Value(
Expand Down

0 comments on commit 8ef86a9

Please sign in to comment.