Commit 2f2412ad authored by Nirmoy Das's avatar Nirmoy Das

fix fd leakage

bpf_prog_compute_tag() isn't closing socket fds
before successful return
Signed-off-by: default avatarNirmoy Das <ndas@suse.de>
parent 7cfb73b5
......@@ -408,6 +408,8 @@ int bpf_prog_compute_tag(const struct bpf_insn *insns, int prog_len,
return -1;
}
*ptag = __builtin_bswap64(u.tag);
close(shafd2);
close(shafd);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment