mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:57:18 +03:00
ngtcp2: fix early return
On a failed tls handshake, the receive function returned without restoring the current data. Reported in Joshua's sarif data Closes #18723
This commit is contained in:
parent
b0f6593219
commit
5f4f70e06d
1 changed files with 4 additions and 2 deletions
|
|
@ -1303,8 +1303,10 @@ static CURLcode cf_ngtcp2_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
*pnread = 0;
|
||||
|
||||
/* handshake verification failed in callback, do not recv anything */
|
||||
if(ctx->tls_vrfy_result)
|
||||
return ctx->tls_vrfy_result;
|
||||
if(ctx->tls_vrfy_result) {
|
||||
result = ctx->tls_vrfy_result;
|
||||
goto out;
|
||||
}
|
||||
|
||||
pktx_init(&pktx, cf, data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue