Skip to content

Commit 2f0dd20

Browse files
committed
Add false case for _handle_xdp in return_utils
1 parent abef68c commit 2f0dd20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pythonbpf/functions/return_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def _handle_xdp_return(stmt: ast.Return, builder, ret_type) -> bool:
3737
raise ValueError(
3838
f"Unknown XDP action: {action_name}. Available: {XDP_ACTIONS.keys()}"
3939
)
40+
return False
4041

4142
value = XDP_ACTIONS[action_name]
4243
builder.ret(ir.Constant(ret_type, value))

0 commit comments

Comments
 (0)