From 6a14e70e0b11fd6d571307895410da7135421e6f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> Date: Tue, 8 Sep 2020 18:33:06 +0900 Subject: [PATCH] Drop connection silently if a first packet does not drive handshake at all --- lib/ngtcp2_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ngtcp2_conn.c b/lib/ngtcp2_conn.c index 474c5abf..4b655bf7 100644 --- a/lib/ngtcp2_conn.c +++ b/lib/ngtcp2_conn.c @@ -7702,7 +7702,7 @@ static int conn_read_handshake(ngtcp2_conn *conn, const ngtcp2_path *path, } /* If neither CRYPTO frame nor 0RTT packet is processed, just drop connection. */ - return NGTCP2_ERR_PROTO; + return NGTCP2_ERR_DROP_CONN; } /* Process re-ordered 0-RTT packets which arrived before Initial -- GitLab