mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:13:41 +03:00
openssl-quic: check results better
Fail on errors from SSL_handle_events(). Force quit Caddy test instance that is left hanging longer with openssl-quic tests for unknown reasons. Reported in Joshua's sarif data Closes #18720
This commit is contained in:
parent
9e8b05fb99
commit
b0f6593219
2 changed files with 9 additions and 2 deletions
|
|
@ -1421,12 +1421,16 @@ static CURLcode cf_progress_ingress(struct Curl_cfilter *cf,
|
|||
if(!snew)
|
||||
break;
|
||||
|
||||
(void)cf_osslq_h3conn_add_stream(&ctx->h3, snew, cf, data);
|
||||
result = cf_osslq_h3conn_add_stream(&ctx->h3, snew, cf, data);
|
||||
if(result)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if(!SSL_handle_events(ctx->tls.ossl.ssl)) {
|
||||
int detail = SSL_get_error(ctx->tls.ossl.ssl, 0);
|
||||
result = cf_osslq_ssl_err(cf, data, detail, CURLE_RECV_ERROR);
|
||||
if(result)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if(ctx->h3.conn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue