diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-25 17:14:40 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-25 17:14:40 -0400 |
commit | 358b3803cdedad607cf649221d0b7e3ce66b45f2 (patch) | |
tree | 9bb11b6b11d9bf9d28797c36c8b161f0702d2fb0 /ks_volatile.c | |
parent | 4ee44177c6da04e210a52528763b2c96a8f3d824 (diff) |
Shake dumb compile-time bugs out of new logout code.
What I get for writing code while build and test environment is tied
up with a multi-day run testing something else.
Diffstat (limited to 'ks_volatile.c')
-rw-r--r-- | ks_volatile.c | 6 |
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); |