projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48befbc
)
crypto: fix transposed arguments in cipher error message
author
Daniel P. Berrange
<berrange@redhat.com>
Fri, 20 Nov 2015 16:15:42 +0000
(16:15 +0000)
committer
Daniel P. Berrange
<berrange@redhat.com>
Wed, 23 Dec 2015 11:02:20 +0000
(11:02 +0000)
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>
crypto/cipher.c
patch
|
blob
|
history
diff --git
a/crypto/cipher.c
b/crypto/cipher.c
index a24677c97feeac849b8cc9364ea2b3f186d5234d..7c333486d2d1d7172d284ddc1743d383b45fa1ac 100644
(file)
--- 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;