diff options
author | Rob Austein <sra@hactrn.net> | 2017-05-04 15:07:26 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-05-04 15:07:26 -0400 |
commit | 08b3af196bc941c9f43156b414ea94faacf64727 (patch) | |
tree | ce98a42ca40e921fcf3396dce97dbc235649bac6 | |
parent | bbd9c119726bcfa7995a2f68633585a08a0bdc0f (diff) |
hal_rpc_pkey_match() works better with response buffer sized correctly.
-rw-r--r-- | rpc_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc_client.c b/rpc_client.c index aad9edf..e968369 100644 --- a/rpc_client.c +++ b/rpc_client.c @@ -787,7 +787,7 @@ static hal_error_t pkey_remote_match(const hal_client_handle_t client, uint8_t outbuf[nargs(11 + attributes_len * 2) + attributes_buffer_len + pad(sizeof(hal_uuid_t))]; uint8_t *optr = outbuf, *olimit = outbuf + sizeof(outbuf); - uint8_t inbuf[nargs(5) + pad(result_max * sizeof(hal_uuid_t))]; + uint8_t inbuf[nargs(5 + result_max) + pad(result_max * sizeof(hal_uuid_t))]; const uint8_t *iptr = inbuf, *ilimit = inbuf + sizeof(inbuf); hal_error_t rpc_ret; |