wolfSSL: DH initialization to call TEST_FAIL() for error tests

Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
Sean Parkinson 2018-05-08 09:26:45 +10:00 committed by Jouni Malinen
parent 2b01270c8a
commit 4b2e03c42a

View file

@ -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;