From f6112aa79a251079aef344d77cbe172031db1e8b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 24 May 2017 11:03:24 +0200 Subject: rpc: Add a comment why we call _get_attribute() twice --- p11-kit/rpc-server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'p11-kit') diff --git a/p11-kit/rpc-server.c b/p11-kit/rpc-server.c index dec9b0b..1eebf1b 100644 --- a/p11-kit/rpc-server.c +++ b/p11-kit/rpc-server.c @@ -305,6 +305,7 @@ proto_read_attribute_array (p11_rpc_message *msg, size_t offset = msg->parsed; CK_ATTRIBUTE temp; + /* Check the length needed to store the value */ memset (&temp, 0, sizeof (temp)); if (!p11_rpc_buffer_get_attribute (msg->input, &offset, &temp)) { msg->parsed = offset; -- cgit v1.1