diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-12 21:49:37 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-12 21:49:37 -0400 |
commit | 8956d3e045e32748cdb8df7b2f69cb6c9e0837d5 (patch) | |
tree | fb5ff69e055b94540d0ea886b2d55ab5a0252b07 | |
parent | 038287d5d5f97316c898c140a5c6be688df2a18c (diff) |
Fix buffer size check when crossing token->volatile boundary in pkey_match().
-rw-r--r-- | rpc_pkey.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |