aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-12 20:57:41 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-12 20:57:41 +0300
commit38f45066a2304935550e2c5b6be21a9744f66bf1 (patch)
tree275a8054f68ad3ef4b6b19ee43039b9b79541c3d /lib/jobs
parent7641518deea3591c6903cb5b1b6c7b551c30281b (diff)
downloadlibquotient-38f45066a2304935550e2c5b6be21a9744f66bf1.tar.gz
libquotient-38f45066a2304935550e2c5b6be21a9744f66bf1.zip
BaseJob::initiate(): fix nullptr dereferencing
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 4653e58a..68adeaf6 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -267,7 +267,7 @@ void BaseJob::initiate(ConnectionData* connData, bool inBackground)
doPrepare();
if ((d->verb == HttpVerb::Post || d->verb == HttpVerb::Put)
- && !d->requestData.source()->isReadable()) {
+ && d->requestData.source() && !d->requestData.source()->isReadable()) {
setStatus(FileError, "Request data not ready");
}
Q_ASSERT(status().code != Pending); // doPrepare() must NOT set this