summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-24 11:03:24 +0200
committerDaiki Ueno <ueno@gnu.org>2017-05-24 11:27:28 +0200
commitf6112aa79a251079aef344d77cbe172031db1e8b (patch)
tree52e02889a4ead0a3e383a182e93378194aa6cd91 /p11-kit
parentba49b85ecf280e7fb6eec96c3ef33c50122e75a6 (diff)
rpc: Add a comment why we call _get_attribute() twice
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/rpc-server.c1
1 files changed, 1 insertions, 0 deletions
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;