]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/cperf_test_vectors.c
ip_frag: free mbufs on reassembly table destroy
[dpdk.git] / app / test-crypto-perf / cperf_test_vectors.c
index f87bb8e1994f7c6c2ca305fafd6dc7bb202a1074..757957f78c418cb5d26c07c1dca7a772ba652f39 100644 (file)
@@ -463,7 +463,7 @@ cperf_test_vector_get_dummy(struct cperf_options *options)
                        break;
                }
 
-               if (aad_alloc) {
+               if (aad_alloc && options->auth_aad_sz) {
                        t_vec->aad.data = rte_malloc(NULL,
                                        options->auth_aad_sz, 16);
                        if (t_vec->aad.data == NULL) {