From af2fe4f219afbc543c3b4ace00b552a94a8c7091 Mon Sep 17 00:00:00 2001 From: Jeff Walden Date: Mon, 25 Mar 2019 22:01:10 +0000 Subject: [PATCH] Bug 1538621. r=keeler Differential Revision: https://phabricator.services.mozilla.com/D24760 --HG-- extra : moz-landing-system : lando --- security/manager/ssl/nsNSSCallbacks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/manager/ssl/nsNSSCallbacks.cpp b/security/manager/ssl/nsNSSCallbacks.cpp index c0178db45bd7..fca4d8b8ba04 100644 --- a/security/manager/ssl/nsNSSCallbacks.cpp +++ b/security/manager/ssl/nsNSSCallbacks.cpp @@ -284,7 +284,8 @@ OCSPRequest::Run() { } nsCOMPtr uploadStream; - rv = NS_NewByteInputStream(getter_AddRefs(uploadStream), mPOSTData); + rv = NS_NewByteInputStream(getter_AddRefs(uploadStream), mPOSTData, + NS_ASSIGNMENT_COPY); if (NS_FAILED(rv)) { return NotifyDone(rv, lock); }