mbox series

[iproute2,0/2] lib: bpf_legacy: some misc fixes

Message ID cover.1618839527.git.aclaudi@redhat.com (mailing list archive)
Headers show
Series lib: bpf_legacy: some misc fixes | expand

Message

Andrea Claudi April 19, 2021, 1:49 p.m. UTC
This patch set fixes two issues on bpf_legacy library code.
- 1/2 fixes a covscan warning about a possible missing close() treating
  0 as a valid file descriptor, as almost elsewhere in iproute2 code.
- 2/2 fixes a missing close() on a socket in some error paths in two
  functions.

Andrea Claudi (2):
  lib: bpf_legacy: treat 0 as a valid file descriptor
  lib: bpf_legacy: fix missing socket close when connect() fails

 lib/bpf_legacy.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)