From 1f868d90241cc6be2b378faa9dd43002b218226a Mon Sep 17 00:00:00 2001 From: Anoob Joseph Date: Thu, 22 Aug 2019 13:58:55 +0530 Subject: [PATCH] examples/ipsec-secgw: fix access to freed packet For unknown/unsupported packets, the packet would get checked for inline offloads after the packet is freed. Fixes: 0ccfd14bc10d ("examples/ipsec-secgw: support inline protocol") Cc: stable@dpdk.org Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- examples/ipsec-secgw/ipsec-secgw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 0d1fd6af60..fcd656b04d 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -353,6 +353,7 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t) RTE_LOG(ERR, IPSEC, "Unsupported packet type 0x%x\n", rte_be_to_cpu_16(eth->ether_type)); rte_pktmbuf_free(pkt); + return; } /* Check if the packet has been processed inline. For inline protocol -- 2.20.1