add missing INIT() to close hook

this caused a crash when the gcc initializer was not called first.
This commit is contained in:
rofl0r 2013-08-30 23:44:23 +02:00
parent 8a84f980bb
commit fa0f355ce8

View File

@ -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]) {