summaryrefslogtreecommitdiffstats
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
commit4b90811978c29d8dae05c8b4bc76d8616e8d73c4 (patch)
tree75f72321f6bbe12f26f4ae5528572ad6b71e51c4 /netwerk
parentabb2a2a1d4fd755510d71b7a6985e5076ed8c2ce (diff)
downloadUXP-4b90811978c29d8dae05c8b4bc76d8616e8d73c4.tar
UXP-4b90811978c29d8dae05c8b4bc76d8616e8d73c4.tar.gz
UXP-4b90811978c29d8dae05c8b4bc76d8616e8d73c4.tar.lz
UXP-4b90811978c29d8dae05c8b4bc76d8616e8d73c4.tar.xz
UXP-4b90811978c29d8dae05c8b4bc76d8616e8d73c4.zip
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 8d837d172..76e0a4ad9 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);