aboutsummaryrefslogtreecommitdiff
path: root/ks_volatile.c
diff options
context:
space:
mode:
Diffstat (limited to 'ks_volatile.c')
-rw-r--r--ks_volatile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ks_volatile.c b/ks_volatile.c
index 29c3576..6a17e45 100644
--- a/ks_volatile.c
+++ b/ks_volatile.c
@@ -614,10 +614,10 @@ static hal_error_t ks_get_attributes(hal_ks_t *ks,
return err;
}
-static void ks_logout(hal_ks_t *ks,
- hal_client_handle_t client)
+static hal_error_t ks_logout(hal_ks_t *ks,
+ hal_client_handle_t client)
{
- if (ks == NULL || client.handle = HAL_HANDLE_NONE)
+ if (ks == NULL || client.handle == HAL_HANDLE_NONE)
return HAL_ERROR_BAD_ARGUMENTS;
ks_t *ksv = ks_to_ksv(ks);