commit | bec47e1fd08ddebbb58c8d5b9f6f5b86a97528d9 | [log] [tgz] |
---|---|---|
author | Jimmy Brisson <jimmy.brisson@arm.com> | Mon Jul 27 13:22:42 2020 -0500 |
committer | Manish Pandey <manish.pandey2@arm.com> | Tue Oct 20 20:17:41 2020 +0000 |
tree | 73dcde8e59fef400b5178aa7ea288bc20d34d1e9 | |
parent | 54db69e39753c1c8fee825b50e119a47787b66ef [diff] |
Use preallocated parts of the HASH struct When OpenSSL's macro allocates the HASH struct, it allocates the fields as well. After this allocation, the prior code would assign over the pointers inside the HASH struct, leaking these fields. This patch avoids allocating extra copies of these members. Change-Id: I50a38b0a04b52ec54d6388db0f694feb578d2818 Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>