Skip to content

Commit 17af788

Browse files
fixup! Add bpf_lua_tostring function
1 parent 904bb0e commit 17af788

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

net/core/filter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6061,8 +6061,8 @@ static const struct bpf_func_proto bpf_lua_putstate_proto = {
60616061
};
60626062

60636063
BPF_CALL_4(bpf_lua_tostring, struct xdp_buff *, ctx, char *, str, u32, size, int, index) {
6064-
if (lua_isstring(ctx->lstatecpu->L, index)) {
6065-
strncpy(str, lua_tostring(ctx->lstatecpu->L, index), size);
6064+
if (lua_isstring(ctx->xdplua->L, index)) {
6065+
strncpy(str, lua_tostring(ctx->xdplua->L, index), size);
60666066
return 1;
60676067
}
60686068

0 commit comments

Comments
 (0)