wolfSSL: DH initialization to call TEST_FAIL() for error tests
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
parent
2b01270c8a
commit
4b2e03c42a
1 changed files with 3 additions and 0 deletions
|
@ -783,6 +783,9 @@ int crypto_dh_init(u8 generator, const u8 *prime, size_t prime_len, u8 *privkey,
|
|||
DhKey *dh = NULL;
|
||||
word32 priv_sz, pub_sz;
|
||||
|
||||
if (TEST_FAIL())
|
||||
return -1;
|
||||
|
||||
dh = os_malloc(sizeof(DhKey));
|
||||
if (!dh)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue