mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Add a nullcheck on pipelined HTTP connections' pushback.
This commit is contained in:
parent
b9aabb76c0
commit
2057017d69
1 changed files with 5 additions and 0 deletions
|
|
@ -291,6 +291,11 @@ nsHttpPipeline::PushBack(const char *data, uint32_t length)
|
|||
MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);
|
||||
MOZ_ASSERT(mPushBackLen == 0, "push back buffer already has data!");
|
||||
|
||||
// Some bad behaving proxies may yank the connection out from under us.
|
||||
// Check if we still have a connection to work with.
|
||||
if (!mConnection)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// If we have no chance for a pipeline (e.g. due to an Upgrade)
|
||||
// then push this data down to original connection
|
||||
if (!mConnection->IsPersistent())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue