mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +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:
		@@ -298,6 +298,7 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
 | 
			
		||||
/*******  HOOK FUNCTIONS  *******/
 | 
			
		||||
 | 
			
		||||
int close(int fd) {
 | 
			
		||||
	INIT();
 | 
			
		||||
	/* prevent rude programs (like ssh) from closing our pipes */
 | 
			
		||||
	if(fd != req_pipefd[0]  && fd != req_pipefd[1] &&
 | 
			
		||||
	   fd != resp_pipefd[0] && fd != resp_pipefd[1]) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user