diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-11-20 16:15:42 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2015-12-23 11:02:20 +0000 |
commit | 50de6261510301d586f0411b3fdb11e4cd4fdb52 (patch) | |
tree | 4b2973fe12c3308d85bc898408ac46aa0b132a8f /crypto/cipher.c | |
parent | 48befbc34420d64fdc1f50a54bafdc66eef575d8 (diff) |
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/cipher.c')
-rw-r--r-- | crypto/cipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c index a24677c97f..7c333486d2 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; |