From 2f0dd20f1ec73445d98083cab7388213df71ed2d Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 6 Oct 2025 05:09:03 +0530 Subject: [PATCH] Add false case for _handle_xdp in return_utils --- pythonbpf/functions/return_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonbpf/functions/return_utils.py b/pythonbpf/functions/return_utils.py index c24e277..c69e416 100644 --- a/pythonbpf/functions/return_utils.py +++ b/pythonbpf/functions/return_utils.py @@ -37,6 +37,7 @@ def _handle_xdp_return(stmt: ast.Return, builder, ret_type) -> bool: raise ValueError( f"Unknown XDP action: {action_name}. Available: {XDP_ACTIONS.keys()}" ) + return False value = XDP_ACTIONS[action_name] builder.ret(ir.Constant(ret_type, value))