diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:00:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-30 18:00:39 +0200 |
commit | a766a76da23e56ddd37933408e04712856a85263 (patch) | |
tree | a6995513ae76d750ca87eab3293bea01dac94326 | |
parent | config.mk: doc ALLOCA_LIMIT, add CC=cc, and set PREFIX=/usr (diff) | |
download | libkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.gz libkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.bz2 libkeccak-a766a76da23e56ddd37933408e04712856a85263.tar.xz |
Fix warning
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libkeccak.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkeccak.h b/libkeccak.h index d830ed8..36c86f3 100644 --- a/libkeccak.h +++ b/libkeccak.h @@ -1006,7 +1006,7 @@ static inline size_t libkeccak_hmac_marshal(const struct libkeccak_hmac_state *restrict state, void *restrict data_) { unsigned char *restrict data = data_; - size_t written = libkeccak_state_marshal(state ? &state->sponge : NULL, data); + size_t written = libkeccak_state_marshal(&state->sponge, data); if (data) { data += written / sizeof(char); *(size_t *)data = state->key_length; |