aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_hmac_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkeccak_hmac_copy.c')
-rw-r--r--libkeccak_hmac_copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libkeccak_hmac_copy.c b/libkeccak_hmac_copy.c
index 0e389c1..9c52328 100644
--- a/libkeccak_hmac_copy.c
+++ b/libkeccak_hmac_copy.c
@@ -25,7 +25,7 @@ libkeccak_hmac_copy(struct libkeccak_hmac_state *restrict dest, const struct lib
size = (src->key_length + 7) >> 3;
dest->key_opad = malloc(2 * size);
- if (dest->key_opad == NULL) {
+ if (!dest->key_opad) {
libkeccak_state_destroy(&dest->sponge);
return -1;
}