]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
quiche: handle tls fail correctly
authorStefan Eissing <stefan@eissing.org>
Wed, 8 Oct 2025 11:30:12 +0000 (13:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 06:26:39 +0000 (08:26 +0200)
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

lib/vquic/curl_quiche.c

index f5fd20fccbf1a350a1c93fe3394f1a8173c06269..1ae159bd4cd6e5ab78106fba18901a942eec89d8 100644 (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;
     }
   }