Skip to content

Commit a3de58a

Browse files
committed
Fix for missing IntelQaFreeFlatBuffer with DH enabled and no keygen. Broken in PR #71.
1 parent 7e725af commit a3de58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/port/intel/quickassist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static WC_INLINE int IntelQaAllocFlatBuffer(CpaFlatBuffer* buf, int size, void*
207207
buf->dataLenInBytes = size;
208208
return 0;
209209
}
210-
#ifdef WOLFSSL_KEY_GEN
210+
#if !defined(NO_DH) || defined(WOLFSSL_KEY_GEN)
211211
static WC_INLINE void IntelQaFreeFlatBuffer(CpaFlatBuffer* buf, void* heap)
212212
{
213213
if (buf && buf->pData) {

0 commit comments

Comments
 (0)