Refactor the double-free fix

pull/5894/head
kaleb-himes 2022-12-15 12:21:08 -07:00
parent 46c47e4adc
commit b23db16ff8
1 changed files with 1 additions and 0 deletions

View File

@ -54596,6 +54596,7 @@ static int test_wolfSSL_DH(void)
#ifdef WOLFSSL_KEY_GEN #ifdef WOLFSSL_KEY_GEN
AssertNotNull(dh = DH_generate_parameters(2048, 2, NULL, NULL)); AssertNotNull(dh = DH_generate_parameters(2048, 2, NULL, NULL));
AssertIntEQ(wolfSSL_DH_generate_parameters_ex(NULL, 2048, 2, NULL), 0); AssertIntEQ(wolfSSL_DH_generate_parameters_ex(NULL, 2048, 2, NULL), 0);
DH_free(dh);
#endif #endif
#endif /* !HAVE_FIPS || (HAVE_FIPS_VERSION && HAVE_FIPS_VERSION > 2) */ #endif /* !HAVE_FIPS || (HAVE_FIPS_VERSION && HAVE_FIPS_VERSION > 2) */
#endif /* OPENSSL_ALL */ #endif /* OPENSSL_ALL */