projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
0d7a3e0
)
libhashkit/aes: fix logic error in aes_initialize
author
Michael Wallner
<mike@php.net>
Mon, 12 Jul 2021 13:11:32 +0000
(15:11 +0200)
committer
Michael Wallner
<mike@php.net>
Mon, 12 Jul 2021 14:00:53 +0000
(16:00 +0200)
src/libhashkit/aes.cc
patch
|
blob
|
history
diff --git
a/src/libhashkit/aes.cc
b/src/libhashkit/aes.cc
index d65a9d914666ef3adb4acfd24ea9c5ec2d56d527..e4ae96f812ae4d1971fa64a3a4b2fff102554441 100644
(file)
--- a/
src/libhashkit/aes.cc
+++ b/
src/libhashkit/aes.cc
@@
-30,7
+30,7
@@
bool aes_initialize(const unsigned char *key, const size_t key_length,
encryption_context_t *crypto_context) {
unsigned char aes_key[AES_KEY_NBYTES];
unsigned char aes_iv[AES_IV_NBYTES];
- if (
aes_key == NULL || aes_iv == NULL
) {
+ if (
!key
) {
return false;
}