summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMartin Petersson <Martin.Petersson@nokia.com>2012-05-11 11:50:02 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-11 15:11:20 +0200
commit417fc1f75929d7a6d2d25e0324c6b79d4b1cb530 (patch)
tree195bf18adbd205d202f948d6781a7ba291b4c3d8 /src/network
parent7a67c822e3e552d0d881f0409a5316de07dbb8c7 (diff)
qhttpthreaddelegate: check that we have a reply set when reading.
Make sure that we always have a reply set when we try to read. Change-Id: Ib3ce9063bffc9810fc2a4fb52ee1a65b7f8cdfa0 Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qhttpthreaddelegate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp
index 1ed9f5d3bd..0a2d59551c 100644
--- a/src/network/access/qhttpthreaddelegate.cpp
+++ b/src/network/access/qhttpthreaddelegate.cpp
@@ -374,6 +374,9 @@ void QHttpThreadDelegate::readBufferFreed(qint64 size)
void QHttpThreadDelegate::readyReadSlot()
{
+ if (!httpReply)
+ return;
+
// Don't do in zerocopy case
if (!downloadBuffer.isNull())
return;