diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index 1d9ebee70..bc4fd6a2a 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -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;