chiark / gitweb /
debianutils: Update from 4.8.3 to 4.8.4
[termux-packages] / packages / tsocks / tsocks.c.patch
1 diff --git a/tsocks.c b/tsocks.c
2 index 9cfdfff..5518633 100644
3 --- a/tsocks.c
4 +++ b/tsocks.c
5 @@ -682,6 +682,11 @@ int close(CLOSE_SIGNATURE) {
6     int rc;
7     struct connreq *conn;
8  
9 +    /*Sometimes this function seems to get called before _init has run*/
10 +       if (realclose == NULL) {
11 +        _init();
12 +    }
13 +
14         if (realclose == NULL) {
15                 show_msg(MSGERR, "Unresolved symbol: close\n");
16                 return(-1);