From f6adf87c0d62f494e5c8e45503259476e5cc9123 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 20 Nov 2015 16:15:42 +0000 Subject: 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 Signed-off-by: Daniel P. Berrange --- crypto/cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/cipher.c') 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; -- cgit v1.1