Skip to content

Commit

Permalink
zebra: don't deref vxlan-vni array
Browse files Browse the repository at this point in the history
Null-check the vxlan-vni array info coming into zebra from
the dataplane.

Signed-off-by: Mark Stapp <[email protected]>
  • Loading branch information
Mark Stapp committed Apr 1, 2024
1 parent 3a9c16a commit 75ef259
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 75ef259

Please sign in to comment.