Skip to content

Commit

Permalink
Check for static syscall instead of SBPFv1
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Oct 21, 2024
1 parent 32f43bb commit 0dca849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ impl<C: ContextObject> BuiltinProgram<C> {
&self,
sbpf_version: SBPFVersion,
) -> &FunctionRegistry<BuiltinFunction<C>> {
if sbpf_version == SBPFVersion::V1 {
&self.sparse_registry
} else {
if sbpf_version.static_syscalls() {
&self.dense_registry
} else {
&self.sparse_registry
}
}

Expand Down

0 comments on commit 0dca849

Please sign in to comment.