diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 34a6fc93e..4b016acd3 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -7127,7 +7127,7 @@ int aesgcm_test(void) BENCH_AESGCM_LARGE, iv1, sizeof(iv1), resultT, sizeof(resultT), a, sizeof(a)); #if defined(WOLFSSL_ASYNC_CRYPT) - result = wc_AsyncWait(result, &enc.asyncDev, WC_ASYNC_FLAG_NONE); + result = wc_AsyncWait(result, &dec.asyncDev, WC_ASYNC_FLAG_NONE); #endif if (result != 0) return -5708;