summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-06-15 15:08:34 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-06-15 15:14:54 (GMT)
commit7f374e0d94230c6742b9ef8bf422f7849e0fc013 (patch)
treeebfc0f76ddde5d771e5ce188f1ce7904690c8be8 /src/network
parentdfe63cc0056a6592a4fb4e5c725c4ea0ed10ba20 (diff)
downloadQt-7f374e0d94230c6742b9ef8bf422f7849e0fc013.zip
Qt-7f374e0d94230c6742b9ef8bf422f7849e0fc013.tar.gz
Qt-7f374e0d94230c6742b9ef8bf422f7849e0fc013.tar.bz2
Fix wrong comparator in QSslCertificatePrivate::QByteArray_from_X509
Because less-than instead of less-or-equal-than was used, the last line of a PEM encoding was not built when the raw length was multiple of 64. Task-number: 256066 Reviewed-by: mariusSO
Diffstat (limited to 'src/network')
-rw-r--r--src/network/ssl/qsslcertificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
index ccb3f06..21d5a33 100644
--- a/src/network/ssl/qsslcertificate.cpp
+++ b/src/network/ssl/qsslcertificate.cpp
@@ -610,7 +610,7 @@ QByteArray QSslCertificatePrivate::QByteArray_from_X509(X509 *x509, QSsl::Encodi
// Convert to Base64 - wrap at 64 characters.
array = array.toBase64();
QByteArray tmp;
- for (int i = 0; i < array.size() - 64; i += 64) {
+ for (int i = 0; i <= array.size() - 64; i += 64) {
tmp += QByteArray::fromRawData(array.data() + i, 64);
tmp += "\n";
}