From 5cee9b9c6394cffee6f31fab00323d9e559f0702 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 11 Feb 2019 17:56:37 +0100 Subject: General improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak_hmac_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libkeccak_hmac_copy.c') 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; } -- cgit v1.2.3-70-g09d2