wolfcrypt/src/dilithium.c: fix null deref in wc_dilithium_init_ex().

This commit is contained in:
Daniel Pouzzner
2024-07-19 13:57:13 -05:00
parent 0eeae4da8c
commit 0aa0f26289

View File

@@ -6952,10 +6952,9 @@ int wc_dilithium_init_ex(dilithium_key* key, void* heap, int devId)
key->idLen = 0;
key->labelLen = 0;
#endif
key->heap = heap;
}
key->heap = heap;
return ret;
}