summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMartin Petersson <Martin.Petersson@nokia.com>2012-05-16 07:35:23 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-05-16 08:25:16 (GMT)
commit051f7e20cfe74bc3ff5497b18c51eabd4ed071dd (patch)
tree21e103c333aea17b1270cf16d52a5c155fff0fe5 /src/network
parent75e1a0e0897985555e12dda355b4d6ed43e9b920 (diff)
downloadQt-051f7e20cfe74bc3ff5497b18c51eabd4ed071dd.zip
Qt-051f7e20cfe74bc3ff5497b18c51eabd4ed071dd.tar.gz
Qt-051f7e20cfe74bc3ff5497b18c51eabd4ed071dd.tar.bz2
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: Icedf4190f3a4f0727e9f415c41cb6041fe5f7604 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 d120373..adfe14e 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;