summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/nsHttpConnection.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-22 20:11:09 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-22 20:11:09 +0100
commita4013251854b88cacf4eeb221c36e696f468ed64 (patch)
treee5c7fcb71b5e5910dfb879c22088424863675767 /netwerk/protocol/http/nsHttpConnection.cpp
parent8ca6744b2ff05ef91d74e950f387df63b0306925 (diff)
downloadUXP-a4013251854b88cacf4eeb221c36e696f468ed64.tar
UXP-a4013251854b88cacf4eeb221c36e696f468ed64.tar.gz
UXP-a4013251854b88cacf4eeb221c36e696f468ed64.tar.lz
UXP-a4013251854b88cacf4eeb221c36e696f468ed64.tar.xz
UXP-a4013251854b88cacf4eeb221c36e696f468ed64.zip
Return proper error if the nss layer encounters an error on the http
tunnel.
Diffstat (limited to 'netwerk/protocol/http/nsHttpConnection.cpp')
-rw-r--r--netwerk/protocol/http/nsHttpConnection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp
index 71a08e177..505d849c0 100644
--- a/netwerk/protocol/http/nsHttpConnection.cpp
+++ b/netwerk/protocol/http/nsHttpConnection.cpp
@@ -535,16 +535,16 @@ npnComplete:
return true;
}
-void
+nsresult
nsHttpConnection::OnTunnelNudged(TLSFilterTransaction *trans)
{
MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);
LOG(("nsHttpConnection::OnTunnelNudged %p\n", this));
if (trans != mTLSFilter) {
- return;
+ return NS_OK;
}
LOG(("nsHttpConnection::OnTunnelNudged %p Calling OnSocketWritable\n", this));
- OnSocketWritable();
+ return OnSocketWritable();
}
// called on the socket thread