Make sure delete_all function pointer is NULL
The peril of not using calloc mean delete_all is not initialized until we explcitly set it. Explicitly set delete_all to NULL to avoid that. Change-Id: Ic370453e6142c6d1b2566df9844b4fac4bc53042
This commit is contained in:
parent
bef8083783
commit
c0ff10d48b
1 changed files with 1 additions and 0 deletions
|
@ -486,6 +486,7 @@ static int openssl_open(const hw_module_t* module, const char* name,
|
|||
dev->import_keypair = openssl_import_keypair;
|
||||
dev->get_keypair_public = openssl_get_keypair_public;
|
||||
dev->delete_keypair = NULL;
|
||||
dev->delete_all = NULL;
|
||||
dev->sign_data = openssl_sign_data;
|
||||
dev->verify_data = openssl_verify_data;
|
||||
|
||||
|
|
Loading…
Reference in a new issue