[Pkg-owncloud-commits] [owncloud-client] 82/175: In case of empty checksum type, emit validated.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:29 UTC 2015
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 b05ca526a46c8a306ccfb4aca0d5cf94881ba14f
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu May 21 14:31:18 2015 +0200
In case of empty checksum type, emit validated.
---
src/libsync/transmissionchecksumvalidator.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libsync/transmissionchecksumvalidator.cpp b/src/libsync/transmissionchecksumvalidator.cpp
index 8d1fdb9..1cbd322 100644
--- a/src/libsync/transmissionchecksumvalidator.cpp
+++ b/src/libsync/transmissionchecksumvalidator.cpp
@@ -100,7 +100,10 @@ void TransmissionChecksumValidator::downloadValidation( const QByteArray& checks
{
// if the incoming header is empty, there was no checksum header, and
// no validation can happen. Just continue.
- if( checksumHeader.isEmpty() ) {
+ const QString csType = checksumType();
+
+ // for empty checksum type, everything is valid.
+ if( csType.isEmpty() ) {
emit validated();
return;
}
--
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