bug 1136140 - wss inside https proxy null deref r=hurley

This commit is contained in:
Patrick McManus 2015-03-09 16:44:34 -04:00
Родитель 31e12dccb6
Коммит 57112e3c84
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1120,9 +1120,9 @@ nsHttpConnection::TakeTransport(nsISocketTransport **aTransport,
// via https) that filter needs to take direct control of the // via https) that filter needs to take direct control of the
// streams // streams
if (mTLSFilter) { if (mTLSFilter) {
nsCOMPtr<nsISupports> ref1(mSocketIn); nsCOMPtr<nsIAsyncInputStream> ref1(mSocketIn);
nsCOMPtr<nsISupports> ref2(mSocketOut); nsCOMPtr<nsIAsyncOutputStream> ref2(mSocketOut);
mTLSFilter->newIODriver(mSocketIn, mSocketOut, mTLSFilter->newIODriver(ref1, ref2,
getter_AddRefs(mSocketIn), getter_AddRefs(mSocketIn),
getter_AddRefs(mSocketOut)); getter_AddRefs(mSocketOut));
mTLSFilter = nullptr; mTLSFilter = nullptr;