Skip to content

Commit

Permalink
Merge pull request #1236 from daemon1024/fix-unknown-rc-inet-accept
Browse files Browse the repository at this point in the history
  • Loading branch information
DelusionalOptimist authored May 18, 2023
2 parents 35434b6 + 1e06a38 commit fdd8377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KubeArmor/BPF/system_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ int kretprobe__inet_csk_accept(struct pt_regs *ctx)
u64 types = ARG_TYPE0(STR_T) | ARG_TYPE1(SOCKADDR_T);
init_context(&context);
context.argnum = get_arg_num(types);
context.retval = PT_REGS_RC(ctx);
context.retval = PT_REGS_PARM3(ctx);

if (context.retval >= 0 && drop_syscall(_NETWORK_PROBE))
{
Expand Down

0 comments on commit fdd8377

Please sign in to comment.