diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2023-11-22 15:47:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-22 15:47:47 -0500 |
| commit | d1e11d48d4510f53650f6e511525178d27a9d5cc (patch) | |
| tree | 293ba992cf35304abd325bc477dd0cc90ecc29ef | |
| parent | af22ff0bd5c5340ca377a7c727057465e7e16bb9 (diff) | |
| parent | 45140bb9e1efd2e603377809e349b35087d24f7d (diff) | |
Merge pull request #14862 from louis-6wind/fix-ctx-iptable
zebra: fix dplane_ctx_iptable use-after-free
| -rw-r--r-- | zebra/zebra_dplane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 2e48c221e3..ba1c4ce584 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -4047,6 +4047,7 @@ static int dplane_ctx_iptable_init(struct zebra_dplane_ctx *ctx, ctx->zd_vrf_id = iptable->vrf_id; memcpy(&ctx->u.iptable, iptable, sizeof(struct zebra_pbr_iptable)); + ctx->u.iptable.interface_name_list = NULL; if (iptable->nb_interface > 0) { ctx->u.iptable.interface_name_list = list_new(); ctx->u.iptable.interface_name_list->del = |
