mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
add missing INIT() to close hook
this caused a crash when the gcc initializer was not called first.
This commit is contained in:
parent
8a84f980bb
commit
fa0f355ce8
@ -298,6 +298,7 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
|
|||||||
/******* HOOK FUNCTIONS *******/
|
/******* HOOK FUNCTIONS *******/
|
||||||
|
|
||||||
int close(int fd) {
|
int close(int fd) {
|
||||||
|
INIT();
|
||||||
/* prevent rude programs (like ssh) from closing our pipes */
|
/* prevent rude programs (like ssh) from closing our pipes */
|
||||||
if(fd != req_pipefd[0] && fd != req_pipefd[1] &&
|
if(fd != req_pipefd[0] && fd != req_pipefd[1] &&
|
||||||
fd != resp_pipefd[0] && fd != resp_pipefd[1]) {
|
fd != resp_pipefd[0] && fd != resp_pipefd[1]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user