From: Daiki Ueno Date: Wed, 24 May 2017 09:03:24 +0000 (+0200) Subject: rpc: Add a comment why we call _get_attribute() twice X-Git-Tag: 0.23.6~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6112aa79a251079aef344d77cbe172031db1e8b;p=p11-kit rpc: Add a comment why we call _get_attribute() twice --- 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;