From 57112e3c84f7875734ae55febf3b22e21de2aa4d Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Mon, 9 Mar 2015 16:44:34 -0400 Subject: [PATCH] bug 1136140 - wss inside https proxy null deref r=hurley --- netwerk/protocol/http/nsHttpConnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp index 1a2ea45a808d..a2d9183f92f4 100644 --- a/netwerk/protocol/http/nsHttpConnection.cpp +++ b/netwerk/protocol/http/nsHttpConnection.cpp @@ -1120,9 +1120,9 @@ nsHttpConnection::TakeTransport(nsISocketTransport **aTransport, // via https) that filter needs to take direct control of the // streams if (mTLSFilter) { - nsCOMPtr ref1(mSocketIn); - nsCOMPtr ref2(mSocketOut); - mTLSFilter->newIODriver(mSocketIn, mSocketOut, + nsCOMPtr ref1(mSocketIn); + nsCOMPtr ref2(mSocketOut); + mTLSFilter->newIODriver(ref1, ref2, getter_AddRefs(mSocketIn), getter_AddRefs(mSocketOut)); mTLSFilter = nullptr;