[Pkg-owncloud-commits] [owncloud-client] 67/470: PropagatorDownload: fix possible crash
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:24:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 60c101d90b42c0d02cf062fecdc36f2b888c8010
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Wed Feb 24 19:52:14 2016 +0100
PropagatorDownload: fix possible crash
Backtrace seen from the crash reporter where reply() is null.
---
src/libsync/propagatedownload.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp
index 2b6e014..dfc2795 100644
--- a/src/libsync/propagatedownload.cpp
+++ b/src/libsync/propagatedownload.cpp
@@ -286,7 +286,9 @@ void GETFileJob::slotReadyRead()
void GETFileJob::slotTimeout()
{
- qDebug() << "Timeout" << reply()->request().url();
+ qDebug() << "Timeout" << (reply() ? reply()->request().url() : path());
+ if (!reply())
+ return;
_errorString = tr("Connection Timeout");
_errorStatus = SyncFileItem::FatalError;
reply()->abort();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list