examples/ipsec-secgw: fix access to freed packet
Checks
Commit Message
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@marvell.com>
---
examples/ipsec-secgw/ipsec-secgw.c | 1 +
1 file changed, 1 insertion(+)
Comments
>
> 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@marvell.com>
> ---
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
>
> >
> > 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@marvell.com>
> > ---
> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Applied to dpdk-next-crypto
Thanks.
@@ -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