Skip to content

Commit 6f1f694

Browse files
committed
libhashkit/aes: fix logic error in aes_initialize
1 parent 0d7a3e0 commit 6f1f694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libhashkit/aes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bool aes_initialize(const unsigned char *key, const size_t key_length,
3030
encryption_context_t *crypto_context) {
3131
unsigned char aes_key[AES_KEY_NBYTES];
3232
unsigned char aes_iv[AES_IV_NBYTES];
33-
if (aes_key == NULL || aes_iv == NULL) {
33+
if (!key) {
3434
return false;
3535
}
3636

0 commit comments

Comments
 (0)