From 8af021382087293e2205eb15642346c6fdd30a59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 30 Jul 2021 18:29:05 +0200 Subject: Fix clang warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak_hmac_set_key.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libkeccak_hmac_set_key.c') diff --git a/libkeccak_hmac_set_key.c b/libkeccak_hmac_set_key.c index b056439..60ef775 100644 --- a/libkeccak_hmac_set_key.c +++ b/libkeccak_hmac_set_key.c @@ -23,8 +23,10 @@ libkeccak_hmac_set_key(struct libkeccak_hmac_state *restrict state, const void * if (size != key_bytes) { state->key_opad = realloc(old = state->key_opad, 2 * size); - if (!state->key_opad) - return state->key_opad = old, -1; + if (!state->key_opad) { + state->key_opad = old; + return -1; + } state->key_ipad = state->key_opad + size; } -- cgit v1.2.3-70-g09d2