proxychains-ng/src
rofl0r 1d0bc349eb fix potential double-close of file descriptors
in case of an error condition, both start_chain() and chain_step()
were closing the fd to be acted upon, without setting it to -1,
and the function calling them would close them again.

this could affect multi-threaded applications that opened new fds
between the first and the second close, invalidating those fds
in the targeted app.

patch loosely based on report and PR by @jhfrontz.

closes #542
2024-01-02 14:45:25 +00:00
..
daemon experimental new feature: proxy_dns_daemon 2020-09-23 22:14:39 +01:00
allocator_thread.c get rid of ip_type.c 2020-09-23 17:00:16 +01:00
allocator_thread.h experimental new feature: proxy_dns_daemon 2020-09-23 22:14:39 +01:00
common.c move isnumericipv4() to common.c 2020-10-28 10:39:27 +00:00
common.h move isnumericipv4() to common.c 2020-10-28 10:39:27 +00:00
core.c fix potential double-close of file descriptors 2024-01-02 14:45:25 +00:00
core.h Add hook to close_range function, solves #439. |0! 2022-04-12 20:37:05 +08:00
debug.c debug: fix DUMP_PROXY_CHAIN() hack 2020-09-20 17:00:10 +01:00
debug.h debug.h: print pid in all debug output 2021-02-05 01:45:19 +00:00
hash.c replace hostent lookup with better performing in-memory copy. 2012-11-08 01:18:19 +01:00
hash.h replace hostent lookup with better performing in-memory copy. 2012-11-08 01:18:19 +01:00
hostsreader.c move isnumericipv4() to common.c 2020-10-28 10:39:27 +00:00
ip_type.h get rid of ip_type.c 2020-09-23 17:00:16 +01:00
libproxychains.c move initialization of quiet variable to do_init 2023-05-20 15:27:22 +00:00
main.c OpenBSD: use ':' as LD_PRELOAD separator (#538) 2023-12-09 12:59:53 +00:00
mutex.h preliminary first fork-safe version 2012-11-07 21:31:11 +01:00
proxychains.conf src/proxychains.conf: Fix typos 2022-01-22 20:05:47 +00:00
proxyresolv add support for "proxy_dns_old" to use old 3.1 DNS lookup method 2020-09-20 22:11:17 +01:00
rdns.c experimental new feature: proxy_dns_daemon 2020-09-23 22:14:39 +01:00
rdns.h experimental new feature: proxy_dns_daemon 2020-09-23 22:14:39 +01:00
remotedns.h experimental new feature: proxy_dns_daemon 2020-09-23 22:14:39 +01:00
version.c print proxychains version on DLL init 2014-07-22 14:10:11 +02:00