Skip to content

Commit

Permalink
Merge pull request #15647 from mjstapp/fix_intf_vni_map
Browse files Browse the repository at this point in the history
zebra: don't deref vxlan-vni array
  • Loading branch information
idryzhov committed Apr 1, 2024
2 parents c461586 + 75ef259 commit 4dc4c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,9 @@ interface_bridge_vxlan_vlan_vni_map_update(struct zebra_dplane_ctx *ctx,
vlanid_t vid;
int i;

if (vniarray == NULL)
return;

memset(&vni_start, 0, sizeof(vni_start));
memset(&vni_end, 0, sizeof(vni_end));

Expand Down

0 comments on commit 4dc4c2e

Please sign in to comment.