ngtcp2: handle error from ngtcp2_conn_submit_crypto_data

Closes #8871
This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-17 19:53:02 +09:00 committed by Daniel Stenberg
parent fe1d00e71b
commit 136ab928c8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}