X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibhashkit%2Faes.cc;h=e4ae96f812ae4d1971fa64a3a4b2fff102554441;hb=6f1f694418c7effef13972ea135ce1c735042a8f;hp=d65a9d914666ef3adb4acfd24ea9c5ec2d56d527;hpb=b7f446e55146456e368c3926347f4c771afcea8c;p=awesomized%2Flibmemcached 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; }