OSDN Git Service
(root)
/
qmiga
/
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
a24677c
..
7c33348
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;