NGTCP2_FRAME_CONNECTION_CLOSE_APP is not allowed in Handshake packet
@@ -4684,12 +4684,6 @@ static ngtcp2_ssize conn_recv_handshake_pkt(ngtcp2_conn *conn,
case NGTCP2_FRAME_CONNECTION_CLOSE:
conn_recv_connection_close(conn, &fr->connection_close);
break;
- case NGTCP2_FRAME_CONNECTION_CLOSE_APP:
- if (fr->type != NGTCP2_PKT_HANDSHAKE) {
- return NGTCP2_ERR_PROTO;
- }
- conn_recv_connection_close(conn, &fr->connection_close);
- break;
case NGTCP2_FRAME_PING:
require_ack = 1;
break;
