mirror of
https://github.com/curl/curl.git
synced 2026-05-01 18:18:25 +03:00
quiche: handle tls fail correctly
quiche receive may report a TLS failure after a verified handshake. That needs to lead to a transfer receive error. Reported-by: Joshua Rogers Closes #18934
This commit is contained in:
parent
8be9a26451
commit
cc7b12347b
1 changed files with 3 additions and 1 deletions
|
|
@ -666,9 +666,11 @@ static CURLcode recv_pkt(const unsigned char *pkt, size_t pktlen,
|
|||
X509_verify_cert_error_string(verify_ok));
|
||||
return CURLE_PEER_FAILED_VERIFICATION;
|
||||
}
|
||||
failf(r->data, "ingress, quiche reports TLS fail");
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
else {
|
||||
failf(r->data, "quiche_conn_recv() == %zd", nread);
|
||||
failf(r->data, "quiche reports error %zd on receive", nread);
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue