From 136ab928c8b76482e007b4563bbe86dad0a18be8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 17 May 2022 19:53:02 +0900 Subject: [PATCH] ngtcp2: handle error from ngtcp2_conn_submit_crypto_data Closes #8871 --- lib/vquic/ngtcp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 75e6089343..e1dc00ace7 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -204,8 +204,8 @@ static int write_client_handshake(struct quicsocket *qs, rv = ngtcp2_conn_submit_crypto_data(qs->qconn, level, data, len); if(rv) { H3BUGF(fprintf(stderr, "write_client_handshake failed\n")); + return 0; } - assert(0 == rv); return 1; }