diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index e6d84179c..26d16dae3 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -7128,7 +7128,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;