summaryrefslogtreecommitdiff
path: root/netwerk
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-19 15:45:27 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-19 15:45:27 +0200
commit90bd9ef32237dce430dad4ca8df76516bdb1e9f7 (patch)
tree75f72321f6bbe12f26f4ae5528572ad6b71e51c4 /netwerk
parent7ef9032c07d4a0875c35d0211f586b9dcdde6e7f (diff)
downloaduxp-90bd9ef32237dce430dad4ca8df76516bdb1e9f7.tar.gz
Add a null check in nsHttpTransaction::Close.
This resolves #776.
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/protocol/http/nsHttpTransaction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp
index 8d837d1723..76e0a4ad9c 100644
--- a/netwerk/protocol/http/nsHttpTransaction.cpp
+++ b/netwerk/protocol/http/nsHttpTransaction.cpp
@@ -1164,7 +1164,9 @@ nsHttpTransaction::Close(nsresult reason)
}
// closing this pipe triggers the channel's OnStopRequest method.
- mPipeOut->CloseWithStatus(reason);
+ if (mPipeOut) {
+ mPipeOut->CloseWithStatus(reason);
+ }
#ifdef WIN32 // bug 1153929
MOZ_DIAGNOSTIC_ASSERT(mPipeOut);