aboutsummaryrefslogtreecommitdiff
path: root/rpc_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc_hash.c')
-rw-r--r--rpc_hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc_hash.c b/rpc_hash.c
index 1bce86e..3c4c79b 100644
--- a/rpc_hash.c
+++ b/rpc_hash.c
@@ -143,8 +143,9 @@ static inline handle_slot_t *find_handle(const hal_hash_handle_t handle)
return NULL;
}
-static inline free_handle(handle_slot_t *slot)
+static inline void free_handle(handle_slot_t *slot)
{
+ if (slot != NULL)
/* state is a union, so this this works for hash and hmac */
slot->state.hash = NULL;
}