From 79559c5041835ce6835a35265a97e291789ec0b0 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 16 Mar 2016 10:15:47 -0400 Subject: Added serial RPC transport and lots more... Added RPC function to get server version number. Substantially reworked GNUMakefile with conditionals. Renamed rpc_*() and xdr_*() to hal_*() for consistency. Moved hal_io_fmc.c from stm32 repo. --- rpc_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpc_hash.c') 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; } -- cgit v1.2.3