aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-20 16:15:42 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-12-23 11:02:20 +0000
commit50de6261510301d586f0411b3fdb11e4cd4fdb52 (patch)
tree4b2973fe12c3308d85bc898408ac46aa0b132a8f /crypto
parent48befbc34420d64fdc1f50a54bafdc66eef575d8 (diff)
downloadqemu-50de6261510301d586f0411b3fdb11e4cd4fdb52.zip
qemu-50de6261510301d586f0411b3fdb11e4cd4fdb52.tar.gz
qemu-50de6261510301d586f0411b3fdb11e4cd4fdb52.tar.bz2
crypto: fix transposed arguments in cipher error message
When reporting an incorrect key length for a cipher, we mixed up the actual vs expected arguments. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c
index a24677c..7c33348 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -89,7 +89,7 @@ qcrypto_cipher_validate_key_length(QCryptoCipherAlgorithm alg,
if (alg_key_len[alg] != nkey) {
error_setg(errp, "Cipher key length %zu should be %zu",
- alg_key_len[alg], nkey);
+ nkey, alg_key_len[alg]);
return false;
}
return true;