forked from wolfSSL/wolfssl
Fix leak in dh_test
This commit is contained in:
@ -13061,6 +13061,7 @@ int dh_test(void)
|
|||||||
/* Test Check Key */
|
/* Test Check Key */
|
||||||
ret = wc_DhSetCheckKey(&key, dh_p, sizeof(dh_p), dh_g, sizeof(dh_g),
|
ret = wc_DhSetCheckKey(&key, dh_p, sizeof(dh_p), dh_g, sizeof(dh_g),
|
||||||
NULL, 0, 0, &rng);
|
NULL, 0, 0, &rng);
|
||||||
|
keyInit = 1; /* DhSetCheckKey also initializes the key, free it */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user