mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 21:54:41 +02:00
wolfcrypt/src/dilithium.c: fix null deref in wc_dilithium_init_ex().
This commit is contained in:
@@ -6952,10 +6952,9 @@ int wc_dilithium_init_ex(dilithium_key* key, void* heap, int devId)
|
|||||||
key->idLen = 0;
|
key->idLen = 0;
|
||||||
key->labelLen = 0;
|
key->labelLen = 0;
|
||||||
#endif
|
#endif
|
||||||
|
key->heap = heap;
|
||||||
}
|
}
|
||||||
|
|
||||||
key->heap = heap;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user