]> sourceware.org Git - glibc.git/commit
linux/check_native: Always close socket on return
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 May 2021 03:44:54 +0000 (09:14 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 May 2021 10:23:33 +0000 (15:53 +0530)
commit900962f37f64c263db83ec8639847e8f6753b8d9
treeea3a1af16b5d06e31233bd8f0f3cbcfca20ccfac
parent5188a9d0265cc6f7235a8af1d31ab02e4a24853d
linux/check_native: Always close socket on return

The error paths of __check_native would leave the socket FD open on
return, resulting in an FD leak.  Rework function exit paths so that
the fd is always closed on return.
sysdeps/unix/sysv/linux/check_native.c
This page took 0.048619 seconds and 5 git commands to generate.