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

clang reported using attrlen uninitialized when parsing fails

parent b558f5bf
No related branches found
No related tags found
No related merge requests found
...@@ -740,6 +740,9 @@ proto_read_attribute_array(GckRpcMessage * msg, CK_ATTRIBUTE_PTR arr, ...@@ -740,6 +740,9 @@ proto_read_attribute_array(GckRpcMessage * msg, CK_ATTRIBUTE_PTR arr,
return PARSE_ERROR; return PARSE_ERROR;
} }
attrlen = value; attrlen = value;
} else {
warning(("failed reading byte array"));
return PARSE_ERROR;
} }
} }
......
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