[dpdk-dev] [PATCH] examples/ipsec-secgw: fix access to freed packet

Anoob Joseph anoobj at marvell.com
Thu Aug 22 10:28:55 CEST 2019

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")

Signed-off-by: Anoob Joseph <anoobj at marvell.com>
 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 0d1fd6a..fcd656b 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",
+		return;
 	/* Check if the packet has been processed inline. For inline protocol

More information about the dev mailing list