mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Fixed use of uninitialized values in wc_DhGenerateParams.
This commit is contained in:
@@ -2152,6 +2152,10 @@ int wc_DhGenerateParams(WC_RNG *rng, int modSz, DhKey *dh)
|
|||||||
ret = MP_INIT_E;
|
ret = MP_INIT_E;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
(void)XMEMSET(&tmp, 0, sizeof(mp_int));
|
||||||
|
(void)XMEMSET(&tmp2, 0, sizeof(mp_int));
|
||||||
|
}
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
if (mp_read_unsigned_bin(&tmp2, buf, bufSz) != MP_OKAY)
|
if (mp_read_unsigned_bin(&tmp2, buf, bufSz) != MP_OKAY)
|
||||||
|
Reference in New Issue
Block a user