Skip to content
Snippets Groups Projects
Commit 49f62ea2 authored by Fredrik Thulin's avatar Fredrik Thulin
Browse files

proto_read_attribute_array: allow len == 0

Since proto_write_attribute_array() happily writes arrays with len == 0,
we should probably parse them. Tounge in cheek.
parent 39f7364c
No related branches found
No related tags found
No related merge requests found
......@@ -688,7 +688,10 @@ proto_read_attribute_array(GckRpcMessage * msg, CK_ATTRIBUTE_PTR arr,
unsigned char validity;
CK_RV ret;
assert(len);
/* Removed assertion. len == 0 is valid for some ret's,
* see proto_write_attribute_array().
* assert(len);
*/
assert(msg);
/* Make sure this is in the right order */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment