From 08b3af196bc941c9f43156b414ea94faacf64727 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 4 May 2017 15:07:26 -0400 Subject: hal_rpc_pkey_match() works better with response buffer sized correctly. --- rpc_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc_client.c') 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; -- cgit v1.2.3