Skip to content

Commit

Permalink
policy: Fix oss-fuzz build
Browse files Browse the repository at this point in the history
Fixes: d169b04 ("policy: Support listener priority on datapath")
Signed-off-by: Joe Stringer <[email protected]>
  • Loading branch information
joestringer authored and aanm committed Dec 10, 2024
1 parent c5273f4 commit 6db21de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/policy/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/cilium/cilium/pkg/labels"
"github.com/cilium/cilium/pkg/policy/api"
"github.com/cilium/cilium/pkg/policy/trafficdirection"
"github.com/cilium/cilium/pkg/policy/types"
"github.com/cilium/cilium/pkg/u8proto"
)

Expand Down Expand Up @@ -45,7 +46,7 @@ func FuzzDenyPreferredInsert(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
keys := newMapState()
key := Key{}
entry := NewMapStateEntry(AllowEntry, nil)
entry := NewMapStateEntry(types.AllowEntry(), nil)
ff := fuzz.NewConsumer(data)
ff.GenerateStruct(&key)
ff.GenerateStruct(&entry)
Expand Down

0 comments on commit 6db21de

Please sign in to comment.