Skip to content

Commit 32d25b7

Browse files
authored
Merge pull request #14873 from FRRouting/mergify/bp/stable/8.5/pr-14862
zebra: fix dplane_ctx_iptable use-after-free (backport #14862)
2 parents f0ffd9b + b5a64e1 commit 32d25b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zebra/zebra_dplane.c

+1
Original file line numberDiff line numberDiff line change
@@ -3550,6 +3550,7 @@ static int dplane_ctx_iptable_init(struct zebra_dplane_ctx *ctx,
35503550

35513551
ctx->zd_vrf_id = iptable->vrf_id;
35523552
memcpy(&ctx->u.iptable, iptable, sizeof(struct zebra_pbr_iptable));
3553+
ctx->u.iptable.interface_name_list = NULL;
35533554
if (iptable->nb_interface > 0) {
35543555
ctx->u.iptable.interface_name_list = list_new();
35553556
ctx->u.iptable.interface_name_list->del =

0 commit comments

Comments
 (0)