From: APTX Date: Wed, 23 May 2012 23:23:36 +0000 (+0200) Subject: Padding is up to and including 16. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=84b6487de96cc49c1e8abee1642ec592978f327f;p=anidbudpclient.git Padding is up to and including 16. --- diff --git a/client.cpp b/client.cpp index b5f2cf8..aecddc3 100644 --- a/client.cpp +++ b/client.cpp @@ -990,7 +990,7 @@ qDebug() << "Ciphertext not a multiple of cipher block size!!"; // Remove padding (and only it) char pad = ret[ret.size() - 1]; - if (pad > 0 && pad < 16) + if (pad > 0 && pad <= 16) { QByteArray padding = ret.right(pad); bool ok = true;