Commit aadb9118edd for nodejs

commit aadb9118eddacede53a954e6aa0055b2f4dc774f
Author: Efe Karasakal <hi@efe.dev>
Date:   Fri Oct 30 19:19:28 2026 +0100

    quic: fix internal error code conversion

    Signed-off-by: Efe Karasakal <hi@efe.dev>
    PR-URL: https://github.com/nodejs/node/pull/66967
    Reviewed-By: Tim Perry <pimterry@gmail.com>

diff --git a/src/quic/session.cc b/src/quic/session.cc
index ba672a3bee4..1d06b1fdcc0 100644
--- a/src/quic/session.cc
+++ b/src/quic/session.cc
@@ -3649,7 +3649,7 @@ void Session::SendConnectionClose() {

   auto ErrorAndSilentClose = [&] {
     Debug(this, "Failed to create connection close packet");
-    SetLastError(QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR));
+    SetLastError(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL));
     Close(CloseMethod::SILENT);
   };

diff --git a/src/quic/streams.cc b/src/quic/streams.cc
index 0a2af12d366..c62ceeb2a8e 100644
--- a/src/quic/streams.cc
+++ b/src/quic/streams.cc
@@ -702,8 +702,7 @@ class Stream::Outbound final : public MemoryRetainer {
             // but we have an error! oh no! We need to error the stream.
             if (flags_.next_pending) {
               flags_.next_pending = false;
-              stream_->Destroy(
-                  QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR));
+              stream_->Destroy(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL));
               // We do not need to worry about calling MarkErrored in this case
               // since we are immediately destroying the stream which will
               // release the outbound buffer anyway.