summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-18 13:17:09 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-18 13:17:09 +0100
commitb87a4551b52e8f999d05641e3ab889ed11f3a001 (patch)
treeef99923ab5b7dbc18875dbe4f6316dc9bf7f4b9a /netwerk/protocol
parent82dffb32bdf829032e2fd38e9eba93729a2cc357 (diff)
downloadUXP-b87a4551b52e8f999d05641e3ab889ed11f3a001.tar
UXP-b87a4551b52e8f999d05641e3ab889ed11f3a001.tar.gz
UXP-b87a4551b52e8f999d05641e3ab889ed11f3a001.tar.lz
UXP-b87a4551b52e8f999d05641e3ab889ed11f3a001.tar.xz
UXP-b87a4551b52e8f999d05641e3ab889ed11f3a001.zip
No issue - Fix unsafe http methods on HTTP/2 with TLSv1.3 0RTT.
Diffstat (limited to 'netwerk/protocol')
-rw-r--r--netwerk/protocol/http/Http2Stream.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/netwerk/protocol/http/Http2Stream.cpp b/netwerk/protocol/http/Http2Stream.cpp
index 22d8142c9..a9d926a53 100644
--- a/netwerk/protocol/http/Http2Stream.cpp
+++ b/netwerk/protocol/http/Http2Stream.cpp
@@ -1478,8 +1478,12 @@ bool
Http2Stream::Do0RTT()
{
MOZ_ASSERT(mTransaction);
- mAttempting0RTT = true;
- return mTransaction->Do0RTT();
+ if (mTransaction->Do0RTT()) {
+ mAttempting0RTT = true;
+ } else {
+ mAttempting0RTT = false;
+ }
+ return mAttempting0RTT;
}
nsresult