From: Michael Wallner Date: Mon, 12 Jul 2021 13:11:32 +0000 (+0200) Subject: libhashkit/aes: fix logic error in aes_initialize X-Git-Tag: 1.1.1~20 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6f1f694418c7effef13972ea135ce1c735042a8f;p=awesomized%2Flibmemcached libhashkit/aes: fix logic error in aes_initialize --- diff --git a/src/libhashkit/aes.cc b/src/libhashkit/aes.cc index d65a9d91..e4ae96f8 100644 --- 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; }