Skip to content

Commit 6db21de

Browse files
joestringeraanm
authored andcommitted
policy: Fix oss-fuzz build
Fixes: d169b04 ("policy: Support listener priority on datapath") Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent c5273f4 commit 6db21de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/policy/fuzz_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/cilium/cilium/pkg/labels"
1414
"github.com/cilium/cilium/pkg/policy/api"
1515
"github.com/cilium/cilium/pkg/policy/trafficdirection"
16+
"github.com/cilium/cilium/pkg/policy/types"
1617
"github.com/cilium/cilium/pkg/u8proto"
1718
)
1819

@@ -45,7 +46,7 @@ func FuzzDenyPreferredInsert(f *testing.F) {
4546
f.Fuzz(func(t *testing.T, data []byte) {
4647
keys := newMapState()
4748
key := Key{}
48-
entry := NewMapStateEntry(AllowEntry, nil)
49+
entry := NewMapStateEntry(types.AllowEntry(), nil)
4950
ff := fuzz.NewConsumer(data)
5051
ff.GenerateStruct(&key)
5152
ff.GenerateStruct(&entry)

0 commit comments

Comments
 (0)