mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-28 21:03:23 +02:00
memset structures to 0 in Init functions
This commit is contained in:
@@ -218,6 +218,10 @@ int wc_InitRsaKey_ex(RsaKey* key, void* heap, int devId)
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
(void)devId;
|
||||
|
||||
XMEMSET(key, 0, sizeof(RsaKey));
|
||||
|
||||
key->type = RSA_TYPE_UNKNOWN;
|
||||
key->state = RSA_STATE_NONE;
|
||||
key->heap = heap;
|
||||
|
||||
Reference in New Issue
Block a user