aboutsummaryrefslogtreecommitdiff
path: root/rpc_pkey.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-12 21:49:37 -0400
committerRob Austein <sra@hactrn.net>2017-04-12 21:49:37 -0400
commit8956d3e045e32748cdb8df7b2f69cb6c9e0837d5 (patch)
treefb5ff69e055b94540d0ea886b2d55ab5a0252b07 /rpc_pkey.c
parent038287d5d5f97316c898c140a5c6be688df2a18c (diff)
Fix buffer size check when crossing token->volatile boundary in pkey_match().
Diffstat (limited to 'rpc_pkey.c')
-rw-r--r--rpc_pkey.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc_pkey.c b/rpc_pkey.c
index e0d9bdc..dc930cf 100644
--- a/rpc_pkey.c
+++ b/rpc_pkey.c
@@ -1026,8 +1026,7 @@ static inline hal_error_t match_one_keystore(const hal_ks_driver_t * const drive
if ((err = hal_ks_match(ks, client, session, type, curve,
mask, flags, attributes, attributes_len,
- *result, &len, result_max - *result_len,
- previous_uuid)) != HAL_OK) {
+ *result, &len, result_max, previous_uuid)) != HAL_OK) {
(void) hal_ks_close(ks);
return err;
}