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:
Stefan Eissing 2025-10-08 13:30:12 +02:00 committed by Daniel Stenberg
parent 8be9a26451
commit cc7b12347b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

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